Skip to content

[Fix] Agents identify as OpenCode before Roomote - #1742

Open
roomote-roomote[bot] wants to merge 3 commits into
developfrom
fix/clarify-roomote-agent-identities-1fd7ewzdhwkr8
Open

[Fix] Agents identify as OpenCode before Roomote#1742
roomote-roomote[bot] wants to merge 3 commits into
developfrom
fix/clarify-roomote-agent-identities-1fd7ewzdhwkr8

Conversation

@roomote-roomote

@roomote-roomote roomote-roomote Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

​Opened on behalf of @daniel-lxs. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

  • Add a system-transform hook that removes only OpenCode's leading You are OpenCode, identity prefix.
  • Install the same hook in Fast's managed OpenCode server and standard task sandboxes.
  • Cover uppercase and lowercase identity variants while proving non-leading and Roomote prompt text stays unchanged.

Why this change was made

OpenCode prepends its own product identity before Roomote's Fast and standard task prompt layers. Removing that prefix at the final system-prompt transform point avoids conflicting product identities without rewriting either mode's existing behavior instructions.

Impact

Fast and standard agents retain their existing Roomote prompt copy, engineering guidance, workflow rules, and tool behavior byte-for-byte. Focused plugin and runtime tests, package type checks, formatting, and the repository pre-push suite pass.

@roomote-community

roomote-community Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

No actionable code issues found. See task

  • Fast sessions using a configured external OpenCode SDK server bypass the identity transform (packages/cloud-agents/src/server/opencode-runtime.ts:255). — dismissed: Fast passes useConfiguredServer: false, and the existing configured-URL regression test confirms a managed server is spawned.

Reviewed 50e9f05

@roomote-roomote

roomote-roomote Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Cleaned the PR to remove only OpenCode's leading identity prefix. Existing Roomote Fast, standard, and shared-style prompt copy is unchanged in the net diff. Focused tests, package type checks, formatting, and pre-push checks pass in 7c784bf.

@roomote-roomote roomote-roomote Bot changed the title [Fix] Agents receive conflicting identities [Fix] Agents identify as OpenCode before Roomote Aug 27, 2026
Comment thread packages/cloud-agents/src/server/opencode-runtime.ts
@roomote-roomote

Copy link
Copy Markdown
Contributor Author

@roomote-roomote rerun the review against the unchanged head. The only prior finding was dismissed with call-chain and regression-test evidence in the resolved thread.

@daniel-lxs

Copy link
Copy Markdown
Member

@roomote-roomote please rerun the code review on the unchanged head. The prior configured-server finding was dismissed with the Fast call-chain and existing regression-test evidence; verify the current seven-file diff for any remaining actionable issues.

@daniel-lxs
daniel-lxs marked this pull request as ready for review August 27, 2026 19:58
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.

1 participant