Add integration coverage for agent completion - #489
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 265e8f6c-66bc-47ab-9750-e0f2b4eaa50a
Contributor
There was a problem hiding this comment.
Pull request overview
Adds end-to-end integration coverage for the /agent <prefix> completion behavior (introduced in #487) by driving the packaged agent pane via wtcli send-keys, and updates supporting fixtures/docs so the new release checklist items are tracked.
Changes:
- Adds two new Pester E2E cases validating
/agent <prefix>completion rendering and keyboard acceptance (Tab commit, Enter selection) without pane rebuild. - Fixes Rust slash-command test fixtures to populate the newly-required
AvailableAgent.sourcefield. - Updates E2E documentation and the release checklist with new coverage items (C240/C241) and refreshed coverage counts.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
tools/wta/src/slash_command_tests.rs |
Updates completion agent fixtures to include AgentSource::Host so Rust tests compile and reflect the new struct shape. |
test/e2e/tests/Feature.PerTabAgent.Tests.ps1 |
Adds E2E coverage for /agent <prefix> completion (ghost text presence, Tab commitment, Enter selection safety). |
test/e2e/README.md |
Updates the E2E suite coverage table and coverage/test-count summaries to reflect the added cases. |
doc/release-check-list.md |
Adds new [E2E] checklist items C240/C241 for /agent prefix completion behavior and selection safety. |
Yuandi (DDKinger)
approved these changes
Jul 24, 2026
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/agent <prefix>completion introduced by Add agent subcommand autocomplete #487AgentSourcefield added by Support profile-scoped WSL ACP agent backends #481Integration boundary
The tests type and navigate through the packaged agent pane using
wtcli send-keys, then assert the rendered TUI buffer, pane-session continuity, and persisted global setting.Testing
pwsh -NoProfile -File test/e2e/bootstrap.ps1 -Checkpwsh -NoProfile -File test/e2e/Invoke-ItE2EReport.ps1 -Path test/e2e/tests/Feature.PerTabAgent.Tests.ps1 -UpdateReport(8 passed)cargo test --manifest-path tools/wta/Cargo.toml(1165 passed)[x]Target: #487