TUI: Align shell completions with GUI - #14600
Conversation
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR warms TUI shell completion sources after session bootstrap by subscribing to SessionsEvent::SessionBootstrapped, adding a late-subscriber warm-up guard, and testing external command loading through the TUI helper. I did not find a concrete code correctness issue or security concern in the changed diff.
Concerns
- This is a user-facing TUI completion behavior change, but the PR description only lists textual manual-test notes. Per the repo's TUI visual-evidence guidance, please attach a terminal transcript,
render_to_lines/TuiBuffer::to_linessnapshot diff, or./script/run-tuicapture demonstrating the Tab completion behavior end to end.
Verdict
Found: 0 critical, 1 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
c8c7041 to
2efd5ea
Compare
Co-Authored-By: Oz <oz-agent@warp.dev>
2efd5ea to
3510fcb
Compare

Description
Align Warp Agent CLI shell Tab completions with the desktop app while keeping rendering and editor ownership frontend-specific.
warp_completer.Linked Issue
N/A
Testing
./script/run-tuilaz<Tab>resolves to the PATH executablelazygitbrew<Tab><Tab>opens Homebrew subcommand completionscompdeffixture replaceswarp-native-fixture warwith the native-onlywarp-native-only-candidate; no filesystem fallback appearscargo test -p warp_completer presentation_tests— 6 passedcargo test -p warp completer::completion_source::tests— 3 passedcargo test -p warp terminal::input::tests::test_tab_completion— 21 passedcargo test -p warp_tui completion— 13 passed./script/formatcargo clippy --workspace --exclude warp_completer --all-targets --tests -- -D warningscargo clippy -p warp --all-targets --tests -- -D warningscargo clippy -p warp_completer --all-targets --tests -- -D warningsgit diff --checkwarp_tuisuite attempted: 940/944 tests passed serially; four order-dependent handoff tests failed, while representative failures passed independently. A parallel run was limited by macOS file-descriptor exhaustion.Agent Mode
CHANGELOG-BUG-FIX: Fixed Warp Agent CLI Tab completions missing desktop completion sources and supported native-shell fallback.
CHANGELOG-TUI: Shell Tab completions now share desktop ordering and native fallback behavior.
Plan: https://staging.warp.dev/drive/notebook/rluzUCwwgxGWekoP9qqBF8
Conversation: https://staging.warp.dev/conversation/9418539a-0a37-44cf-a359-ab9bd38668dd
Co-Authored-By: Oz oz-agent@warp.dev