Skip to content

ref(task-execution): Remove dead Conversation work state writers - #2907

Merged
dcramer merged 1 commit into
mainfrom
ref/remove-dead-state-writers
Nov 7, 2026
Merged

dcramer merged 1 commit into
mainfrom
ref/remove-dead-state-writers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Item 5 of #2890. Removes three state writers that nothing in production uses. No behavior changes.

  • recordConversationExecution (chat/task-execution/state.ts): only tests called it, and it could set any execution status. The two tests that used it now write that state to Redis directly.
  • injectedAtMs: nothing has written it since fix(runtime): Keep deferred messages out of active turns #1014 (July). Conversation records expire after 7 days, and the reader already dropped messages that had the field, so no stored message can still have it. This removes the schema field, the reader branch, and the test for old markers.
  • Duplicate turnWakeError branch (chat/providers/slack/turn.ts): it set shouldPersistFailureState = true right before the line that sets it unconditionally. Its variable was then only written, so that is removed too.

Item 4 of #2890 (markAgentInvocationMailboxAppended) is not a real problem. That function writes mailboxStatus, which has only the values pending and appended, and writing appended again is harmless. The column with the race, parentMailboxStatus, is written by markAgentInvocationParentMailboxAppended, which already checks for pending.

Verified: task-execution component tests, acp-http-recovery and durable-queue integration tests (171 tests), typecheck, lint.

via @dcramer.

--

View Session [Sentry]

- `recordConversationExecution` had no caller outside tests and could set
  any execution status. Tests now seed that residue in Redis directly.
- `injectedAtMs` had no writer since #1014 (July). Records expire after
  7 days, so no stored message can still carry it.
- The Slack turn set `shouldPersistFailureState = true` twice for a wake
  failure. Drop the duplicate branch and its write-only variable.
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 7, 2026 9:26pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

13 screenshot changes — 13 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Details Watched Linked Work · Mobile
Conversation Details Watched Linked Work · Mobile
Changed
Conversation Fork Dialog · Desktop
Conversation Fork Dialog · Desktop
Changed
Show 7 more changed screenshots
Conversation Fork Dialog · Mobile
Conversation Fork Dialog · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Memory List Jump · Desktop
Conversation Memory List Jump · Desktop
Changed
Conversation Share Details · Desktop
Conversation Share Details · Desktop
Changed
Conversation Stop Active · Mobile
Conversation Stop Active · Mobile
Changed
Conversations Sections Collapsed · Desktop
Conversations Sections Collapsed · Desktop
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@dcramer
dcramer merged commit 2a61c6b into main Nov 7, 2026
46 checks passed
@dcramer
dcramer deleted the ref/remove-dead-state-writers branch November 7, 2026 21:31

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 259220ba Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant