-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
🐞 Bug Description
Some internally generated OMO prompts/messages are being attributed as user-initiated in GitHub Copilot contexts, instead of agent-initiated.
This appears to affect flows where OMO injects prompts into the main session (continuation/recovery/background notifications/babysitter patterns). As a result, Copilot users may see unexpected premium request consumption.
✅ Expected Behavior
OMO-internal/system-generated prompts should be attributed as agent-initiated (or otherwise avoid being counted as user-origin prompts), while real user prompts remain user-initiated.
❌ Actual Behavior
At least some OMO-generated prompts are treated as user-initiated by downstream Copilot attribution heuristics, increasing premium usage for Copilot users.
🔁 Reproduction (high-level)
- Use OpenCode + GitHub Copilot provider with OMO enabled.
- Trigger OMO internal prompt flows (e.g. background-task notifications, continuation injections, recovery flows).
- Observe that some of these prompts are classified as user-initiated (and can contribute to premium request counting).
📌 Notes / Context
- This is similar in nature to the 2026
opencode-dynamic-context-pruningCopilot misattribution incident/fixes. - OMO currently emits many internal prompts via
session.promptAsync(...)in main sessions, which can hit user-role boundary heuristics. - We should keep OMO messages model-visible where needed (not blanket-ignore them), while preventing misattribution.
💡 Suggested direction (minimal)
- Add an OMO
chat.headerssafeguard (Copilot-only) to forcex-initiator=agentfor clearly OMO-internal emissions. - Mark OMO-internal injected prompts with a stable internal marker + synthetic metadata so override conditions are explicit and narrow.
- Preserve normal user prompt attribution and existing noReply behavior semantics for background notifications.
Environment
- OMO: current main
- OpenCode: current versions where Copilot plugin applies role/content heuristics for initiator
- Provider: GitHub Copilot
Related
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels