Skip to content

fix(agent): correct event type literal in parser test#32

Open
NJX-njx wants to merge 1 commit intomoeru-ai:mainfrom
NJX-njx:fix/parser-event-type-test-27
Open

fix(agent): correct event type literal in parser test#32
NJX-njx wants to merge 1 commit intomoeru-ai:mainfrom
NJX-njx:fix/parser-event-type-test-27

Conversation

@NJX-njx
Copy link
Copy Markdown

@NJX-njx NJX-njx commented Mar 30, 2026

Summary

  • Fixed naming mismatch in parseOperationCompletedMessage test: the test expected 'operationCompleted' (singular) but the interface, implementation, and message handler all use 'operationsCompleted' (plural)
  • This was the only consumer using the singular form — the test would fail at runtime

Changes

  • packages/agent/src/parser.test.ts: Changed expected type from 'operationCompleted' to 'operationsCompleted'

Test plan

  • pnpm run lint passes
  • pnpm run build && pnpm run typecheck passes
  • pnpm test in agent package — all 6 tests pass

Fixes #27

🤖 Generated with Claude Code

The test expected 'operationCompleted' (singular) but the interface,
implementation, and message handler all use 'operationsCompleted' (plural).

Fixes moeru-ai#27

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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.

[P0][S] agent:統一 parser 事件契約並修正測試漂移 / agent: normalize parser event contract and fix test drift

1 participant