Repository navigation
feat(chat): a plain chat message continues, continues with a nudge, or starts fresh (v0.491.0) - #952
Merged
Merged
Conversation
…r starts fresh (v0.491.0) One deterministic rule shared by the Slack, Discord and Telegram sockets decides whether a plain message still belongs to the run it follows: mid-turn or quiet < 30 min continues silently; a run that reported done and has been quiet 4h, or any conversation quiet 24h, starts fresh with the same agent; anything between continues and says so. The acks offer `new` / `continue` as the undo. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Problem. Nothing decided on a real signal whether a plain chat message belongs to the run it follows. A Slack/Discord DM continued the newest run that had pinged the sender in the last 24h (counted from the notification, finished or not); a Telegram chat continued its last run forever.
Rule (
src/edge/chat-continuity.ts, deterministic, no model call), shared by all three sockets:newto start fresh instead"continueto pick that one back up"chat_convostable): latest of the sender's last message, the run's last turn-end, our last ping.newafter a nudge interrupts the turn and re-sends the original message fresh;continueafter a fresh start re-sends it to the previous run and stops the fresh one. Offers expire after 1h. A barenewresets a conversation on every platform.chat_continuity);enabled: falserestores the previous behaviour.Not built: topic-change detection inside the middle band — the nudge is the escape.
Tests. New
scripts/chat-continuity-test.cjs(76 assertions, all three platforms through the real socket dispatch). Full suite: 151 suites pass. Not exercised against live chat platforms (REST stubbed).🤖 Generated with Claude Code