Rule bug #1814

Closed
opened 2026-02-16 17:32:45 -05:00 by yindo · 5 comments
Owner

Originally created by @honbolau on GitHub (Sep 24, 2025).

Originally assigned to: @rekram1-node on GitHub.

Switching mode with tab will cause the AI model to lose its rules,, Your operational mode has changed from plan to build

Originally created by @honbolau on GitHub (Sep 24, 2025). Originally assigned to: @rekram1-node on GitHub. Switching mode with tab will cause the AI model to lose its rules,, Your operational mode has changed from plan to build
yindo closed this issue 2026-02-16 17:32:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 24, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1661: Describes automatic model switching when changing modes from PLAN to BUILD or vice versa
  • #1063: Reports tab key no longer toggling plan/build mode properly in older versions

Feel free to ignore if none of these address your specific case about AI model losing rules during mode switching.

@github-actions[bot] commented on GitHub (Sep 24, 2025): This issue might be a duplicate of existing issues. Please check: - #1661: Describes automatic model switching when changing modes from PLAN to BUILD or vice versa - #1063: Reports tab key no longer toggling plan/build mode properly in older versions Feel free to ignore if none of these address your specific case about AI model losing rules during mode switching.
Author
Owner

@honbolau commented on GitHub (Sep 24, 2025):

packages/opencode/src/session/prompt/build-switch.txt

@honbolau commented on GitHub (Sep 24, 2025): [packages/opencode/src/session/prompt/build-switch.txt](https://github.com/sst/opencode/blob/5199141369bfd9264f824d1f20a8a906107a6ab5/packages/opencode/src/session/prompt/build-switch.txt#L3)
Author
Owner

@rekram1-node commented on GitHub (Sep 24, 2025):

@honbolau what do you mean it loses it's rules?

We inject a prompt when you switch from plan mode to build mode and that is to help the llm ignore prior context telling itself it can't make edits

@rekram1-node commented on GitHub (Sep 24, 2025): @honbolau what do you mean it loses it's rules? We inject a prompt when you switch from plan mode to build mode and that is to help the llm ignore prior context telling itself it can't make edits
Author
Owner

@honbolau commented on GitHub (Sep 24, 2025):

The rules set in the global AGENTS.md will be ignored by the AI after switching tabs, I don't know if this is an AI model issue or an opencode issue.

@honbolau commented on GitHub (Sep 24, 2025): The rules set in the global AGENTS.md will be ignored by the AI after switching tabs, I don't know if this is an AI model issue or an opencode issue.
Author
Owner

@rekram1-node commented on GitHub (Sep 24, 2025):

@honbolau I mean it depends on what you put in there, what rule is it ignoring?

It is either a model issue or the rule conflicts with an opencode prompt.

@rekram1-node commented on GitHub (Sep 24, 2025): @honbolau I mean it depends on what you put in there, what rule is it ignoring? It is either a model issue or the rule conflicts with an opencode prompt.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1814