Repository navigation
Start a new Discord conversation with /new - #114
Merged
Merged
Conversation
The operator's message that is exactly /new (ignoring case and the mention) starts a new task on the channel's agent and is answered without running a turn. The earlier task is kept and its queued work still runs; a current task nothing has used is reused, so repeated /new adds no rows. A redelivered /new changes nothing, and a guest's /new or /new with more text is an ordinary message. Closes #112.
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.
Closes #112. Part of the 2026-10-02 pivot: Discord stays a thin chat surface, minimal but solid for day-to-day use.
What changes
/new(ignoring case and the bot mention; in a DM, a bound channel, an active thread, or with a mention) starts a new conversation. In one store transaction it records the message, makes a new task on the channel's agent current, and queues the reply "Started a new conversation." No turn runs and nothing reaches the node./newadds no empty rows./new(same message id) changes nothing. A guest's/new, or/newwith more text, is an ordinary message.Wake { turns, replies }). The channel lookup runs before/new, so an unseen thread's/newuses its parent channel's agent.Not in this PR
/cancel,/compact,/model,/reasoningand/statuseach need an RCP operation first, so the Android app gets them too.Verification
scripts/check-module-size.sh,cargo fmt --all -- --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace: pass./newas a message;/NEWwith padding matched,/new pleaseas a turn, a DM/new, reply delivery woken;/newkeeps one unused task on the channel's agent;/newtwice, one answer is posted and no command runs./new;