Skip to content

feat: Add the /btw command#17189

Closed
kjellknapen wants to merge 6 commits into
anomalyco:devfrom
kjellknapen:feat/btw-command
Closed

feat: Add the /btw command#17189
kjellknapen wants to merge 6 commits into
anomalyco:devfrom
kjellknapen:feat/btw-command

Conversation

@kjellknapen
Copy link
Copy Markdown

Issue for this PR

Closes #16992

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

I have tried to create a similar /btw command like in claude code to ask extra questions regarding the current context it runs concurrently in a different loop

How did you verify your code works?

I tested it myself in the TUI

Screenshots / recordings

tinyvid_optimized_Screen.Recording.2026-03-12.at.14.mp4

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

sendhil-anduril added a commit to sendhil/opencode that referenced this pull request Mar 30, 2026
Adapts upstream PR anomalyco#17189. Adds a `btw` boolean flag to
UserMessage and AssistantMessage schemas. Btw prompts run through
btwLoop using SessionProcessor (no tools), concurrent with the main
loop. Completed btw exchanges are filtered from toModelMessages() so
they don't pollute future context. Response renders inline via
BtwSection, dismissible with esc/enter. Btw messages are hidden from
the main message list.

Includes a Bedrock fix not in the upstream PR: strips reasoning/thinking
parts from btw history to avoid the API's immutable thinking block
constraint after round-tripping through storage.

Removes the old /ask modal dialog, ask agent, and /ask server route.
@github-actions
Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this May 12, 2026
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.

[FEATURE]: add /btw command

1 participant