Repository navigation
Commit staged changes with a typed message when Ryco can't write one - #860
Merged
Merged
Conversation
sak0a
force-pushed
the
qa-fix/commit-staged-message
branch
from
October 29, 2026 03:22
45cc03e to
ad9ce1d
Compare
sak0a
added a commit
that referenced
this pull request
Oct 29, 2026
Rebased for the merge train as one commit on top of #860: this PR's commits and its review fixes ("Re-probe Claude after a signed-out answer so Refresh sees a new login"). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sak0a
force-pushed
the
qa-fix/acp-session-updates
branch
from
October 29, 2026 04:17
3f451db to
ee3170f
Compare
sak0a
force-pushed
the
qa-fix/commit-staged-message
branch
from
October 29, 2026 04:18
ad9ce1d to
17ccc51
Compare
sak0a
added a commit
that referenced
this pull request
Oct 29, 2026
Rebased for the merge train as one commit on top of #860: this PR's commits and its review fixes ("Re-probe Claude after a signed-out answer so Refresh sees a new login"). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sak0a
force-pushed
the
qa-fix/acp-session-updates
branch
from
October 29, 2026 07:40
ee3170f to
8ac7f84
Compare
sak0a
force-pushed
the
qa-fix/commit-staged-message
branch
from
October 29, 2026 07:41
17ccc51 to
3001316
Compare
sak0a
added a commit
that referenced
this pull request
Oct 29, 2026
Rebased for the merge train as one commit on top of #860: this PR's commits and its review fixes ("Re-probe Claude after a signed-out answer so Refresh sees a new login"). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sak0a
added a commit
that referenced
this pull request
Oct 29, 2026
Rebased for the merge train as one commit on top of #860: this PR's commits and its review fixes ("Re-probe Claude after a signed-out answer so Refresh sees a new login"). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Merge train 3 reviewed this PR before merging. The squash includes these fixes from the review:
|
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 and why
The Linux QA pass (bug 3) found that Commit staged (#769) could not commit at all when commit-message generation failed, and showed the raw generation output:
commitMessagefor a staged-only commit, but the button never sent one.Now:
commitMessagewith the samestagedOnlyguard. It clears after a successful commit.client-runtimelocalChanges) recognises aTextGenerationErroras "changed nothing": it keeps the reviewed index and shows "No commit: the commit message could not be generated (…). Type a message and commit again." Other failures (index moved, uncertain delivery) still clear the review as before.cliFailureDetail(server,TextGenerationUtils.ts) builds the detail of a failed Codex or Claude CLI run: it drops every output line that is also a line of the prompt, strips ANSI and log timestamps, keeps the last two error lines and bounds the result at 400 characters. This applies to every surface that shows a text-generation failure (the git action toasts too), not just this button. The other providers' failures never echoed raw output.For the QA case the panel now reads: "No commit: the commit message could not be generated (Codex CLI command failed: ERROR: Reconnecting... 5/5 ERROR: unexpected status 401 Unauthorized: Missing bearer or basic authentication in header, …). Type a message and commit again."
Overlaps
CodexTextGeneration.tsandClaudeTextGeneration.ts. This PR only replaces the non-zero-exit block in each, and the sanitizer works from whatever prompt those PRs build.git merge-treeagainst both PR heads, and against Find in the diff panel with ⌘F, match whole words or patterns, and open folded files on a match #846 (DiffPanel.tsx), merges cleanly.Validation
TextGenerationUtils.test.ts(prompt lines dropped, error lines kept, fallbacks, bound), a controller test (review kept, then a typed commit), and aDiffPanel.stagingbrowser test (alert, nocommitMessageon the first try, typed message sent, field cleared).bun run check,bun run check:changed(typecheck, related tests, read-from-disk tests incl.serverBundleBoundaries): pass.Verified on the Linux QA box
Integration build, real
ryco serve, text generation set to the fake Cursor (returns non-JSON): Commit staged showed "No commit: the commit message could not be generated (Cursor Agent returned invalid structured output). Type a message and commit again." with the staged review still there. Typing "Tweak the greeting" and committing createdb50ee4b Tweak the greetingwith exactly the staged hunk ofsrc/app.ts; the unstaged edits toREADME.mdandsrc/app.tsstayed in the working tree. A follow-up commit drops the doubled period the box run showed ("output.).").🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.