Skip to content

A fix's end is a line in the conversation too, not only the line above the bar - #132

Merged
mjoerke merged 4 commits into
release-1.3from
fix-end-in-conversation
Nov 13, 2026
Merged

mjoerke merged 4 commits into
release-1.3from
fix-end-in-conversation

Conversation

@claude

@claude claude Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Before: when a background /thimble-fix finished, 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 pass and 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> with y 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: afterCheck in plugin/fix/fixer.ts calls showEnd, 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). A ui.render hook on Placed in plugin/fix/register.ts draws it with fixEndRow (plugin/fix/line.ts), which draws the line's own rows (fixLineRows, given the row), while the bar's call of fixLineRows leaves 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.log where no row can be placed) and plugin/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 pass and 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-server on a busy runner, not on what they check (they pass on main's runs, and failed here once): test_notebook's slow_starts gave its 0.5 s limit to the sandbox's start too (STARTUP_TIMEOUT bounds _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's asked() 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 -e and 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):

  • validate: passed (the usual no-version warning)
  • plugin: passed, 142 pass, 0 fail
  • node: passed, 39 pass, 0 fail
  • python: passed, 128 passed
  • parity: passed, 7 passed
  • server: passed, 239 passed, 0 skipped
  • page: passed (typecheck; 66 test files, 147 tests; build)

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 fails settings.test.ts ("no implementation for ui.focus") on main too; check.sh page run first on the fresh clone, then the full run. THIMBLE_TEST_WORKERS was not needed.

🤖 Generated with Claude Code

…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>
@claude
claude Bot marked this pull request as ready for review November 13, 2026 18:00
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>
@mjoerke
mjoerke changed the base branch from main to release-1.3 November 13, 2026 21:07
@mjoerke
mjoerke merged commit 1f0bf5c into release-1.3 Nov 13, 2026
8 checks passed
@mjoerke mjoerke mentioned this pull request Nov 13, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants