Repository navigation
fix(test): call isStructuredAgentSessionThinking with its { items } source (unbreaks main typecheck) - #25948
fix(test): call isStructuredAgentSessionThinking with its { items } source (unbreaks main typecheck)#25948brennanb2025 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to This test-only change aligns its inputs with the expected snapshot shape and does not alter product behavior. No actionable merge risk is identified; it is ready for normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Fresh review of Already superseded: current CI settled: mobile verification passes. Both reds are inherited from the old main baseline: static analysis fails on the unchanged session-host file's 301-line lint violation; aggregate verification fails because that check failed and unit tests were skipped. No new reds. Desktop typechecking and unit tests never ran in CI. No local tests/typechecks were attempted; the shared install cannot load vitest because |
|
Superseded by #25949, which already fixed this TS2741 on main (merged 19:24Z). Closing. |
ELI5
Main's typecheck fails, and because of that, CI skips the test jobs on every pull request. Two PRs merged a few hours apart: #19221 added two test lines that call
isStructuredAgentSessionThinkingwith a plain list of items, and #25751 changed that function to take{ items, latestTurn }. Each was correct on its own, and git merged them without a conflict. This PR wraps those two calls in{ items: … }, the shape every other test in the file already uses.What Changed
src/shared/structured-agent-session-live-turn.test.ts: the two reasoning-state assertions pass{ items: [...] }instead of a bare array (TS2741 at lines 42 and 44 on mainb922342199b).Why
It's the smallest correct fix: the test now calls the function the way it is defined on main.
Linked Issue
N/A (main's typecheck fails since #19221 and #25751 crossed)
Visual Proof
N/A: a test-only fix; nothing visible changes.
Testing
On this branch (main
b922342199bplus this commit), the node and web typechecks report no error in this file. The only remaining errors are thestream-json,stream-chainanddevaluemodules missing from the local install, which CI installs. The file could not be run locally, because the shared install is missing main's newdevaluedependency, so the vitest config can't load; CI runs it. oxlint--deny-warningsis clean.AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Test-only. No security, platform, SSH, mobile or compatibility impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)