Repository navigation
test(search): keep Kiro out of older hosts' expected history-search agents - #27002
Conversation
…gents #26695 added Kiro to the history-search agent catalog and updated the unit tests, but the cross-version wire tests still built their expected older-host agent list as 'everything except the agents added later', which now included Kiro. Older hosts never accepted Kiro, and the client correctly withholds it, so those 7 tests failed on main.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe cross-version downgrade tests now exclude Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The changes are limited to expected agent lists in older-host tests. No merge-blocking risk is identified in the supplied context. Pre-merge checks |
|
ELI5
main's "cross-version wire compatibility" CI job is red. Seven session-history-search tests expect older Orca hosts to accept Kiro in a search filter. They never could, and the app already correctly leaves Kiro out when talking to them. Only the tests' expected lists were wrong. This fixes those lists.What Changed
Before: every PR whose CI runs the cross-version wire job failed it. The failures were in
qoder-history-search-downgrade.unit.test.ts(5 tests) andsession-search-agent-set-downgrade.unit.test.ts(2 tests). For example, the test expectedkiroin the agent filter sent to a v1.4.211 host, but the filter actually sent doesn't include it.After: the tests expect what the app correctly does: Kiro is withheld from older hosts, the same as Jcode and the other agents added after those releases.
Mechanism: these tests build "the agents an older host understands" as
AI_VAULT_AGENTSminus the agents added later. #26695 (Kiro session history) addedkirotoAI_VAULT_AGENTS, and updated the same exclusion lists in the unit tests (session-search-agent-compatibility.test.ts,ai-vault-search.test.ts). It missed the two cross-version tests, which only run in that CI job. Test-only change; no product code changes.Why
The product code is right.
LEGACY_SEARCH_AGENTSinsrc/shared/ai-vault-search-agent-compatibility.tsis frozen to the v1.4.211 parser and has no Kiro capability flag, so Kiro is never sent to a host that hasn't said it supports it. Changing the code to send Kiro would make those older hosts reject the whole search.Linked Issue
None. Found while checking CI on #26962, where the same 7 failures appear. They reproduce on a clean
main(d358e5973cf).Visual Proof
N/A. Test-only change with no UI.
Testing
tests/e2e/cross-version-wire/: 35 files and 182 tests pass locally. Before this change, the two files had 7 failures on cleanmain.oxlint is clean on both files.
Automated tests updated
Agent skill upstream boundary