Skip to content

fix(fork): an agent's self-snooze survives its own turn completing - #4

Merged
Jefferson-Butler1 merged 1 commit into
fork/refresh-patches-20261019from
fork/agent-self-snooze
Oct 19, 2026
Merged

Jefferson-Butler1 merged 1 commit into
fork/refresh-patches-20261019from
fork/agent-self-snooze

Conversation

@Jefferson-Butler1

Copy link
Copy Markdown
Owner

Problem

An agent that snoozes its own thread mid-turn gets woken by finishing that same turn (upstream #18985). A completed run wakes a snoozed thread when it finishes after snoozedAt, and the agent's own run always does.

Change

Adds agent-self-snooze.patch to the end of the series. When the caller is the thread's own agent and a run is active, t3_thread_organize snooze now waits for that run to complete and then snoozes, returning snoozesWhenTurnEnds: true. This mirrors upstream's existing deferred self-settle (settleAfterRun). A failed or interrupted run, a snooze someone else set meanwhile, or a wake time that already passed leaves the thread awake. Manual snoozes are unchanged.

Source commit: b7fcd4c on fix/agent-self-snooze.

Verification

  • vp test run on ThreadManagementService.test.ts, runtimeLayer.test.ts, AgentAwarenessRelay.test.ts, OrchestratorMcpToolkit.integration.test.ts: 152 passed. New: snoozeAfterRun branch cases, and a runtime test showing an own-agent snooze is deferred until the run completes, then applied.
  • Server typecheck and targeted lint clean.
  • Patch applies cleanly onto v0.1.1-nightly.20261018.3335.
  • python3 -m unittest discover -s .fork -p '*_test.py' passes.

Not checked: replay after home-agent.patch, because the nightly series already fails on that tag (right-panel-maximize-any-width, home-agent, inbox-order, thread-links-any-environment all conflict). Those need a refresh before any build ships; this patch may need regenerating after home-agent.patch is.

Claude Opus 5.5 via Claude Code

Carries a fix for upstream pingdotgg#18985 as agent-self-snooze.patch: an agent that
snoozed its own thread mid-turn was woken by finishing that turn. The snooze
now waits for the turn to complete, like upstream's deferred self-settle.
@Jefferson-Butler1
Jefferson-Butler1 changed the base branch from fork-maintenance to fork/refresh-patches-20261019 October 19, 2026 18:08
@Jefferson-Butler1
Jefferson-Butler1 merged commit d8fd19c into fork/refresh-patches-20261019 Oct 19, 2026
@Jefferson-Butler1
Jefferson-Butler1 deleted the fork/agent-self-snooze branch October 19, 2026 18:42
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