Skip to content

tweak: build switch prompt tweak#2525

Merged
rekram1-node merged 2 commits into
devfrom
build-switch
Sep 10, 2025
Merged

tweak: build switch prompt tweak#2525
rekram1-node merged 2 commits into
devfrom
build-switch

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 10, 2025

Copy link
Copy Markdown
Collaborator

wrap w/ system reminder

should fix: #2504

@rekram1-node
rekram1-node merged commit bdc0f7c into dev Sep 10, 2025
2 checks passed
@thdxr
thdxr deleted the build-switch branch February 1, 2026 03:31

const lastAssistantMsg = msgs.filter((x) => x.info.role === "assistant").at(-1)?.info as MessageV2.Assistant
if (lastAssistantMsg?.mode === "plan" && agent.name === "build") {
const wasPlan = msgs.some((msg) => msg.info.role === "assistant" && msg.info.mode === "plan")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, this seems to add the reminder to every new message sent in a session that was once in plan mode, when really it should be sufficient to only send it once per transition.

xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 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.

Stuck in read only mode

2 participants