Repository navigation
Make the local connector easy to start and readable, and stop promptly - #520
Merged
Merged
Conversation
MaggieAppleton
force-pushed
the
living-final-polish
branch
from
October 12, 2026 13:46
50676f5 to
6951d03
Compare
MaggieAppleton
force-pushed
the
connector-ergonomics
branch
from
October 12, 2026 13:46
0acc0b5 to
368b346
Compare
MaggieAppleton
force-pushed
the
living-final-polish
branch
from
October 12, 2026 17:40
6951d03 to
0a648bb
Compare
The connector command now works outside a Chopin checkout: `bun run build` and the Docker image write one runnable bundle, and the server serves it without authentication, revalidated by its hash. Development bundles from source per request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pairing, connection and job lines go to stdout with ANSI styling on a TTY (plain under NO_COLOR or a pipe); failures stay on stderr. Agent stderr is hidden unless CHOPIN_DEBUG=1, with its last lines shown on failure. Claims carry the document title so a job line names its work. Permission prompts show the tool kind and command, paths or input, and remember Always allow per tool kind for the run. The stdio connector e2e runs the downloaded bundle from the checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A no-workspace refusal in the Build view and the investigation card shows one shared note: the agent isn't connected, the download-and-connect command to run in the project folder with a copy button, that Bun is needed, and a troubleshooting link. The Build note now survives a load or draft that lands after the press; only a started build clears it. Other card refusals use plain copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ctrl-C at a permission prompt no longer just pauses readline: it stops the connector like Ctrl-C anywhere else. Running work is reported stopped from the connector terminal before the connector disconnects; a second Ctrl-C exits at once. disconnect_workspace now fails the connection's active builds immediately through reportBuild (persisted, then announced); the sweep remains for connectors killed without warning. Build names why it stopped. When a run ends, background processes left in its worktree, such as a dev server in its own process group, are stopped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The local-agent note now answers a refused Build plan, Retry or pressed Build of changes in the Build view. Why a build stopped (from the connector terminal, or its agent disconnecting) reads in the capsule for first builds and rebuilds. A disconnecting connector fails its running rebuild at once, as it does a build, and the spike cleanup and no-push setup stay in the restyled run loop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Whitespace only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaggieAppleton
force-pushed
the
connector-ergonomics
branch
from
October 12, 2026 18:00
368b346 to
024fa28
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Maggie's real test on the #466 preview hit four problems.
bun run connectorfailed with "script not found: connector" outside a Chopin checkout.What changed
bun run buildand in the Docker image, and served atGET /connector.jswith no auth and an ETag. The UI and docs give one command to run in the project folder:mkdir -p ~/.chopin && curl -fsSL {origin}/connector.js -o ~/.chopin/connector.js && CHOPIN_URL={origin} bun ~/.chopin/connector.js connect . -- copilot --acp --allow-all.bun run connectorstill works for contributors, and the bundle supports the stdiobridgemode.no-workspacerefusal shows one shared note: the agent isn't connected, the command with Copy, that Bun is needed, and a "Trouble connecting?" link.disconnect_workspacenow fails the connection's active builds and rebuilds immediately: persisted, then announced. The sweep still catches a connector killed without warning. Build's capsule and headline say why a build stopped.docs/local-experiments.md#trouble-connectinganddocs/local-launcher.mdnow cover the downloadable connector and pairing problems.Rebased onto the reworked stack
These five commits were rebased onto the updated #466 head.
LocalAgentNotemoved into Make Build plan explicit and show build status in one capsule #508's read-only Build view and Build a delivered plan's later changes on demand without LIVE_BUILD #510's rebuild refusal, and stays in the investigation card.disconnected()fits Keep a built document in sync with its pull requests (LIVE_BUILD) #452's rebuilds and the consent rules.Tests
GET /connector.js.endedReason.bun run fix,bun run types, the fullbun test,bun run ci, and the connector, experiments, implementation-launcher and harness e2e suites all pass locally.Visuals
🤖 Generated with Claude Code