Repository navigation
ref(task-execution): Remove dead Conversation work state writers - #2907
Merged
Merged
Conversation
- `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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
13 screenshot changes — 13 changed · 0 added · 0 removed Review screenshots in Frameshift Show 7 more changed screenshots |
dcramer
approved these changes
Nov 7, 2026
23 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.turnWakeErrorbranch (chat/providers/slack/turn.ts): it setshouldPersistFailureState = trueright 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 writesmailboxStatus, which has only the valuespendingandappended, and writingappendedagain is harmless. The column with the race,parentMailboxStatus, is written bymarkAgentInvocationParentMailboxAppended, which already checks forpending.Verified: task-execution component tests,
acp-http-recoveryanddurable-queueintegration tests (171 tests), typecheck, lint.via @dcramer.
--
View Session [Sentry]