GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): Claude threads get a reminder to mark background work they wait on by tebiggs · Pull Request #24 · tebiggs/t3code

Conversation

@tebiggs

@tebiggs tebiggs commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

A Claude agent can start a background waiter and end its turn without calling t3_background_wait. The task then stays unmarked, so the sidebar shows the thread as available while the agent is still waiting on it, and automatic settlement doesn't protect the waiter. A real thread did this three times after doing it correctly five times earlier. The only prompt was one line in the system prompt.

T3 now registers a PostToolUse hook through the Claude Agent SDK. It repeats the instruction with the tool result, only when a Bash call with run_in_background: true or a Monitor call starts in the top-level thread. Foreground commands, other tools and subagents get nothing. Commands stay opt-in, so a dev server is still left unmarked.

Eval results

Passes per case, 5 samples for the new case and 3 for each guard:

Case Opus 5.5 Sonnet 5.5
waiter-beside-delegate-waited-on (new), before → after 1/5 → 5/5 0/5 → 5/5
background-deploy-waited-on, with the hook 3/3 3/3
detached-deploy-waiter-waited-on, with the hook 3/3 3/3
dev-server-not-waited-on, with the hook 3/3 3/3

The guards were not re-baselined in this run. They passed 6/6 per model on this same system prompt text in #14. This covers only the background-work cases, not the full suite.

Ten more cases from orchestration and pull-requests can start background work: the Monitor, poll-loop, deploy-wait and async-delegate cases. With the hook, they passed 18/20 on Opus and 18/24 on Sonnet, at 2–3 samples each. The reminder appeared in 3 samples: deploy-wait-ends-turn-unwatched twice on Opus and once on Sonnet, and all 3 passed. None of the 6 failures got a reminder, so their model input was identical to main's text:

  • merge-permission-after-unwatch-polls: Opus 0/2, Sonnet 2/3. The agent stopped to report a problem instead of watching the PR.
  • deploy-wait-ends-turn-unwatched: Sonnet 1/3. One sample asked about a gated deploy, and one polled in the foreground.
  • opus-review-too-via-delegate and file-watcher-after-async-delegates: Sonnet 2/3 each, on the delegation route.

The eval runner now applies T3's PostToolUse hooks, so a case sees the reminder the way Claude Code words it. A first draft of the new case passed on the old text, so the case replays the real shape: a wake from a delegated review in an ongoing thread, with the waiter pattern coming from standing instructions.

A real Claude Code 2.1.316 session on Haiku confirmed delivery: a foreground echo got no reminder, and a background sleep got the text word for word. The check ran outside T3's server, with no T3 MCP server attached, so it proves the hook and its delivery, not a full turn with t3_background_wait in the UI.

Claude only, like t3_background_wait. Other providers need no change.

Model: Claude Opus 5.5, through Claude Code in T3 Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tebiggs @claude
fix(server): Claude threads get a reminder to mark background work th…
044f819
…ey wait on

An agent that started a background waiter could end its turn without calling
t3_background_wait, so the sidebar showed the thread as available while it was
still waiting. A PostToolUse hook now repeats the instruction when a background
Bash or Monitor call starts in the top-level thread.

The mcp-tool-use eval applies T3's PostToolUse hooks and gains a case for a
waiter restarted while handling a delegate's wake.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tebiggs
tebiggs merged commit c39c653 into main Nov 5, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@tebiggs tebiggs mentioned this pull request Nov 15, 2026
chore(fork): merge upstream v0.1.10-nightly.20261115.4723 #52
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tebiggs
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.