feat: add /btw background session command#17198
Open
brendandebeasi wants to merge 2 commits intoanomalyco:devfrom
Open
feat: add /btw background session command#17198brendandebeasi wants to merge 2 commits intoanomalyco:devfrom
brendandebeasi wants to merge 2 commits intoanomalyco:devfrom
Conversation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Found a potential duplicate: PR #17189: feat: Add the /btw command This PR appears to be addressing the same feature as the current PR #17198. Both are implementing the |
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.
Issue for this PR
Closes #16992
Related: #17189 (original community implementation by @kjellknapen)
Type of change
What does this PR do?
Adds a
/btwslash command that lets users fire off lightweight background questions or append todos without interrupting the active session.This is an alternative implementation to #17189, built on top of the existing session infrastructure with a different approach to background session management and message reporting.
Key changes:
/btw ask <question>— spawns a background session that inherits parent context, runs the question, and reports the result back as a system message (without polluting provider message history)/btw todo <item>— appends a todo to the current session's todo list/btw status— shows status of background sessions/btwbehavior and synthetic assistant message serializationHow did you verify your code works?
bun test test/session/btw.test.ts test/session/message-v2.test.tsbun typecheckbun test(full suite)Screenshots / recordings
N/A — backend/CLI command, no UI changes.
Checklist