Repository navigation
A fix's end is a line in the conversation too, not only the line above the bar - #132
Merged
Merged
Conversation
…e the bar When a background /thimble-fix finished, only the line above the bar and a desktop notification said so; a person reading the conversation missed it. Now the fixer's end also puts one line in the transcript ($.ui.log), with what came of it and the keys the bar's line takes, which Claude Code draws as "thimble: ✓ fixed: <title> · tests pass. At an empty prompt: y use it now · d what changed · n later." A failed fix and a fix saved as a request get their line too. The bar's line, the notification and what Claude reads stay as they were. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A review of PR #132: the one dim line was easy to pass over. The fixer's end is now a row placed at the transcript's end ($.ui.place), drawn as a round box in thimble's color, the way the tour's rows and the tray are drawn: the first row of the line above the bar (✓ thimble fixed: <title> · tests pass) and its keys, each a click that does what the key does. Once the line no longer shows that end (a key acted on it, the next prompt took it), the box keeps its words with a dim border and no keys. Where no row can be placed (a Claude Code without $.ui.place, a session thimble does not draw), the one line from before ($.ui.log) says it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI's browser-server job failed on two tests that time or order what runs beside them, not on what they check: - test_notebook's slow_starts set STARTUP_TIMEOUT to 0.5 s to time out the kernel's answer, but the same limit bounds the wait for the sandbox to show the kernel's gate (_open_gate), so a sandbox slower than 0.5 s to start ended the start with a RuntimeError before the TimeoutError the test checks. The fixture now gives the 0.5 s to the answer alone (_wait_ready), and the sandbox keeps its usual allowance. - test_runtime's asked() took main's request by its place in the list, but the look after an answer makes a request of its own beside main, which came before main's next one. asked() now finds main's request by the analyst's words it ends with. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The box and the line above the bar said the same thing twice. Now the box draws the fix's line itself, with the same rows, keys and d's view of what changed (fixLineRows, given the box's row), and the bar leaves a line out while a box draws it (the line names its row: box). The keys still act at an empty prompt, and a click in the box does what its key does. Where no box can be placed (a Claude Code without $.ui.place, a session thimble does not draw, a place that failed), the bar draws the line as before. A session that starts again (a reload, a resumed conversation, which brings no placed row back) gives the line back to the bar, and the box keeps its words, dim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
mjoerke
added a commit
that referenced
this pull request
Nov 14, 2026
- Workbench: a session picker when thimble-browser starts in a folder that has sessions, and in the switcher; several sessions of one folder can run at once (#131) - Terminal: a finished /thimble-fix shows in a box in the conversation, not only above the bar (#132) - Fixes come back after a thimble update on current Claude Code (#130) Co-Authored-By: Claude Opus 5.5 (1M context) <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.
Before: when a background
/thimble-fixfinished, only the line above the bar (✓ thimble fixed: <title> · tests pass/y use it now · d what changed · n later) and a desktop notification said so. The conversation showed only Claude's "Started a new thimble fix in the background…" line, so a person reading the conversation missed that the fix was done.After: the fixer's end shows in the conversation, in a round box in thimble's color, as the tour's rows and the tray are drawn, and the box takes the place of the line above the bar, so it shows once:
✓ thimble fixed: Bar says read for coverage · tests passand its keys,y use it now · d what changed · n later. The keys act at an empty prompt as before, a click on one in the box does the same, and d opens what changed inside the box. A failed fix's box says× <title> did not pass · <why>withy try again · d ask Claude · n dismiss(no y when it is blocked), and a fix saved as a request gets its box too. Once the line goes (a key acted on it, or the next prompt took it), the box keeps its first row, its border dim. Where no box can be placed, the bar draws the line as before. The bar while a fixer works, the notification and what Claude reads at the next prompt stay as they were.How:
afterCheckinplugin/fix/fixer.tscallsshowEnd, which keeps the end in$.state(fixEnds) and places a row at the transcript's end with$.ui.place, the API the tour's rows use; the fix's line then names that row (box). Aui.renderhook onPlacedinplugin/fix/register.tsdraws it withfixEndRow(plugin/fix/line.ts), which draws the line's own rows (fixLineRows, given the row), while the bar's call offixLineRowsleaves a boxed line out. Where no row can be placed (a Claude Code older than 2.1.314, which has no$.ui.place, a session whose conversation thimble does not draw, such as an SDK host, or a place that failed), the bar draws the line, and one line,$.ui.log, says it in the transcript, which such a host receives too. A session that starts again (a reload, or a resumed conversation, which brings no placed row back) gives the line back to the bar. Waking main was ruled out: thimble drops a fork's task notification on purpose (core/forks.ts), and the fixer's agent ends before thimble's commit and tests do, so a notification would come too early and cost a model turn. Tests:plugin/tests/fix.test.ts(the ready and failed boxes, no copy on the bar, y and d at an empty prompt, a click on n in the box, the dim box after it, the line back on the bar after a restart, and the bar's line and$.ui.logwhere no row can be placed) andplugin/tests/fixend.test.ts(the whole hooks module on the real test engine: one row placed, drawn as a round box with the title,tests passand the keys, and the band above the prompt without it). On main nothing shows in the conversation, and both fail.Also two server tests that failed CI's
browser-serveron a busy runner, not on what they check (they pass on main's runs, and failed here once):test_notebook'sslow_startsgave its 0.5 s limit to the sandbox's start too (STARTUP_TIMEOUTbounds_open_gate), so a sandbox slow to show the kernel's gate ended the start with a RuntimeError before the TimeoutError the test checks; it now gives the 0.5 s to the kernel's answer alone.test_runtime'sasked()took main's request by its place in the list, where the look after an answer, a request of its own, can come first; it now finds main's request by the analyst's words it ends with. Both failures reproduced locally by holding back the gate and by putting a look's request in between, and pass with the change.Screenshot: Claude Code 2.1.314 in a 120x36 terminal with thimble from this branch, resuming a made-up conversation (a question, the request for a fix and Claude's "Started a new thimble fix…" reply, another question) whose fix is ready and no session showed yet; no model call was made. Captured with
tmux capture-pane -eand drawn as PNG; the container's auth warning under the banner is left out. Before (main), only the line above the bar showed the fix's end.Before screenshot
[After screenshot, in a conversation](
https://github.com/safety-research/thimble/blob/6c15e60ff866fe243f591194dd81219555a8db22/pr-assets/fix-end-in-conversation/thimble-fix-end-in-conversation.png)scripts/check.sh(all steps, as a non-root user):Environment workarounds: socat wrapped with
-4(container has no IPv6); Claude Code 2.1.314 (CI's pin) first on PATH, because the container's 2.1.323 failssettings.test.ts("no implementation for ui.focus") on main too;check.sh pagerun first on the fresh clone, then the full run. THIMBLE_TEST_WORKERS was not needed.🤖 Generated with Claude Code