Skip to content

feat(chat): a plain chat message continues, continues with a nudge, or starts fresh (v0.491.0) - #952

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/chat-continuity
Nov 30, 2026
Merged

vikasprogrammer merged 1 commit into
mainfrom
feat/chat-continuity

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

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:

Situation Outcome
run mid-turn, or quiet < 30 min continue silently
in between continue + "Reply new to start fresh instead"
reported done and quiet ≥ 4h, or quiet ≥ 24h fresh run, same agent, prefaced with a recap + "Reply continue to pick that one back up"

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

…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>
@vikasprogrammer
vikasprogrammer merged commit 3942d2d into main Nov 30, 2026
1 check 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