Repository navigation
Distinguish local connection failures and independent CLI access - #15
Merged
Merged
Conversation
Move the error walk and classification out of the request catch block and replace nested ternaries with early returns. The exit 3 error codes now have one source of truth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Integration tests spawn real processes and hit the 5 second default on the Intel macOS runner. One suite-wide limit replaces fixing them one at a time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Say what to do instead of naming internals like the HTTP API or MCP, and keep error codes in the section for scripts. Release smoke tests now check the stable error code, because they required a message the CLI no longer prints, which would have failed the next release. CI runs the same check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Current apps return 404 for pairing, so `pair` now says none is needed. Fix the `documents text` example, which omitted a required flag, mark insights as older data, and stop claiming nothing leaves the computer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The CLI reported “ExtraBrain is not running” when an agent host blocked localhost. It now preserves connection causes as structured
LOCAL_ACCESS_BLOCKED,CONNECTION_REFUSED,REQUEST_TIMEOUT, orCONNECTION_FAILEDdetails, retaining numeric exit 3. Discovery is bounded to 10 seconds; requests are never automatically replayed.The CLI uses HTTP API routes independently of MCP. Disabled discovery now returns
CLI_ACCESS_DISABLEDand directs users to CLI access in Settings > Agent Skills. Connection messages and documentation use plain language and no longer mention MCP. This accompanies desktop #1366, which separates the two settings and route lifecycles.Validation: Node 24.20 typecheck and full suite (212 passed, 5 existing optional tests skipped); bundle and standalone executable build. The final packaged CLI returned
CLI_ACCESS_DISABLEDwith exit 3 against a controlled local HTTP server. Earlier packaged checks covered denied localhost, a responding dev app, an unused port, and live session listing with host permission.extrabrain pairnow says no pairing is needed on current apps, which return 404 for it, and stays available for older versions. The README also fixes thedocuments textexample, marks insights as older data, and no longer claims nothing leaves the computer.Numeric exit 3 remains compatible. Release smoke tests now check
data.errorinstead of the old message text, which would have failed the next release; CI runs the same check on every runner. No agent policy changes or automatic elevation. Publish with the coordinated desktop and skills changes; no release was made by this PR.