Uh oh!
There was an error while loading. Please reload this page.
test(desktop): match session change event contract - #3642
Conversation
Generated-by: Codex
jackwener
left a comment
There was a problem hiding this comment.
Acting on behalf of repository owner WAWQAQ under the standing Kabi authorization for PR review and APPROVE; exact head 2c723175da14f37d0218f2d2ba3fdbfe5cb1f3b1.
GO: no P0–P3. The production SessionChangedEvent contract, live emitter, preload forwarding path, and Goal adapter all use reason as the discriminator and do not define or branch on type. Full repository build and the focused Goal adapter test passed. Reintroducing the three removed type properties made Desktop main compilation fail at exactly those three fixtures with TS2353; restoring the PR made compilation pass. All three GitHub discussion endpoints were empty.
Fresh machine gates: OPEN, non-draft, MERGEABLE; exact-head test is completed/success. This agent-executed approval does not claim to satisfy the repository's separate required-human-review wording. No merge performed.
Uh oh!
There was an error while loading. Please reload this page.
Generated-by: Codex
Summary
Align the Goal adapter test fixture with the current
SessionChangedEventcontract so Desktop main-process compilation succeeds onmainagain.The production contract and all live emitters use
reason, optional identifiers, andts; only the new test fixture from #3531 retained the removedtype: 'sessions_changed'discriminator. This removes those three stale properties without changing production behavior or adding another event representation.Verification
mainwithnpm --workspace @maka/desktop run build:main: three TS2353 failures ingoal-services-adapter.test.ts.npm --workspace @maka/desktop run build:mainnode --test --test-concurrency=1 apps/desktop/dist/main/__tests__/goal-services-adapter.test.js(1/1 passed)npm run format:checkgit diff --checkAI use
Select exactly one:
Tool(s) and scope: Codex diagnosed the CI failure, verified the event authority, removed the stale test-only fields, and ran focused validation.
Checklist
Does this PR entail a change in behavior?