Repository navigation
feat(web): surface copyable CCCC commands from error messages - #243
Merged
Merged
Conversation
ChesterRa
added a commit
that referenced
this pull request
Dec 1, 2026
Recognize the daemon's own wording for an Antigravity ACP session that did not open, and show its fixed login command, instead of taking any quoted cccc command from an error. An error can give several commands to run in order, and one picked out alone loses that order. This error stays on screen until dismissed. Other timed errors show their own text and close after eight seconds, as before. The hint no longer says Antigravity is not signed in: the daemon uses the same words whenever its session/new or session/load request fails, a timeout included. It says the session could not be opened and to run the command if sign-in is needed. The original message stays one click away. The daemon keeps that sentence in one constant, with a test that names the Web file, so a rewording cannot drop the command unnoticed. Follows up the change merged from #243. Verified with the Web checks and Web tests, including errors that quote other commands and the login sentence without the daemon's first sentence, the daemon test for the sentence, and the 138 pytest tests, including the locale key checks.
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.
What
Some daemon errors can only be fixed by running a CCCC command, and they quote it in backticks, e.g. the Antigravity ACP authentication error: "… Complete separate ACP login with
cccc setup … --login." Today that command is buried in a toast that disappears after eight seconds, which is too short to read it, switch to a terminal and copy it.When an error message quotes a
cccc …command, the error toast now:Only a backtick-quoted command starting with
cccccounts; other quoted text such as IDs or paths is ignored, and a command the message wrapped over lines is joined into one line. Parsing lives inweb/src/utils/commandError.ts;AppFeedback.tsxrenders it anduseUIStore.showErrorskips the auto-dismiss timer for these errors. Strings are added in en/zh/ja.Verification
commandError.test.ts(3 tests): the Antigravity ACP login command, any other quoted CCCC command, and a command wrapped over lines.AppFeedback.command.test.tsx(5 tests): the plain-words text and exact copied command, the original message under the disclosure, the copy-failure state, an error without a command left unchanged, and the toast staying until dismissed while a plain error still clears.scripts/quality_gate.sh fast(format, lint, typecheck) passes on this branch; the app, store and util test files pass on this base (174 tests).