Skip to content

fix(server): settle finished agent-only threads - #123

Merged
nullStack65 merged 2 commits into
release/native-0.1.10from
clo-940-auto-settle
Nov 20, 2026
Merged

nullStack65 merged 2 commits into
release/native-0.1.10from
clo-940-auto-settle

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Finished agent-only threads stayed in the agent inbox after their runs ended, so done work piled up until someone settled it by hand. The agent inbox should hold only work that is not done.

A completed, interrupted, or cancelled agent-only thread now settles when the run ends, when a subagent's parent has the result, and when the last pull-request watch ends. The existing startup sweep backfills threads that are already finished and skips ones already settled. Kameron, Jeff, and shared inboxes are never auto-settled, including by the day and merge settings. Failed agent threads stay unsettled. A pending watch, monitor, request, snooze, or queued message still holds the thread.

Tests cover each rule and those holds. apps/server typecheck passed. Local vp lint cannot load the TypeScript oxlint plugin on Node v22.22.1, so lint is left to CI.

Not in this change: suppressing a stale lane-ended alert when a newer run is already going. That alert path is the one t3code#113 is already editing.

Deploy: fleet

Model: grok-4.7
Task: fix

Finished agent-only work stayed in the agent inbox until someone settled
it by hand. A completed, interrupted, or cancelled agent-only thread now
settles when its run ends, when its parent has the subagent result, and
when the last pull-request watch ends. Founder and shared inboxes are
never auto-settled, and a failed agent thread stays unsettled. The
existing startup sweep backfills threads that are already finished.

Model: grok-4.7
Task: fix
Agent: Codex
A provider subagent copies its latest message into result while it is
still running, and a later follow-up can sit beside an older delivered
result. Settlement now requires a terminal task with no open follow-up,
settles a subagent only when it is idle or finished, and keeps a
pending monitor.

Model: grok-4.7
Task: fix
Agent: Codex
@nullStack65
nullStack65 merged commit 55adff8 into release/native-0.1.10 Nov 20, 2026
3 checks passed
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.

1 participant