Skip to content

fix: dedupe OpenCode idle responses#4625

Merged
code-yeongyu merged 3 commits into
devfrom
fix/deduplicate-opencode-responses
May 30, 2026
Merged

fix: dedupe OpenCode idle responses#4625
code-yeongyu merged 3 commits into
devfrom
fix/deduplicate-opencode-responses

Conversation

@code-yeongyu
Copy link
Copy Markdown
Owner

@code-yeongyu code-yeongyu commented May 30, 2026

Summary

  • Remove the context-window-monitor hook entirely, including config schema/docs references and hook wiring.
  • Dedupe a real session.idle that arrives immediately after OMO synthesized the same idle from session.status, preventing duplicate downstream responses.
  • Refresh platform optional package entries in bun.lock so CI frozen installs match the current release package set.

Testing

  • bun test src/plugin/event.test.ts src/plugin/hooks/create-session-hooks.test.ts src/config/schema.test.ts --test-name-pattern 'synthetic idle|removed context-window-monitor|removed context window monitor'\n- bun run typecheck\n- bun run build\n- bun test\n- bun install --frozen-lockfile\n\n## Manual QA\n- opencode serve from an isolated temp project loaded this PR worktree plugin: file:///Users/yeongyu/local-workspaces/omo-wt/fix/deduplicate-opencode-responses/src/index.ts.\n- Sent a real prompt through the serve HTTP API using session ses_18564a07cffe0g7cnNdAofSPoV; OpenCode logs showed session.status followed by session.idle.\n- OMO openclaw command gateway counter wrote exactly one line: session.idle ses_18564a07cffe0g7cnNdAofSPoV.

@code-yeongyu code-yeongyu merged commit 2206c3a into dev May 30, 2026
16 checks passed
@code-yeongyu code-yeongyu deleted the fix/deduplicate-opencode-responses branch May 30, 2026 20:49
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