Skip to content

Remove IT badge from built-in slash commands - #850

Merged
Kai Tao (vanzue) merged 1 commit into
mainfrom
dev/vanzue/slash-command-tag
Sep 7, 2026
Merged

Remove IT badge from built-in slash commands#850
Kai Tao (vanzue) merged 1 commit into
mainfrom
dev/vanzue/slash-command-tag

Conversation

@vanzue

Copy link
Copy Markdown
Contributor

Summary

  • remove the [IT] source badge from built-in slash commands
  • retain the active agent badge for ACP-advertised commands
  • update the focused rendering test

Testing

  • cargo test --target x86_64-pc-windows-msvc --manifest-path tools/wta/Cargo.toml source_badges_only_identify_agent_commands

Keep provider badges only for slash commands advertised by the active ACP agent.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 4, 2026 14:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is narrowly scoped to UI rendering, updates the unit test to assert the new behavior, and has no remaining correctness issues based on the updated call sites.

Pull request overview

This PR updates the WTA command popup rendering so that built-in (client) slash commands no longer display an [IT] source badge, while ACP-advertised (agent) commands continue to show the active agent badge. This aligns the UI’s “source” indicator with “agent-provided” rather than “built-in vs agent”.

Changes:

  • Remove the built-in [IT] badge by only computing/rendering source badges for CommandCandidate::Agent.
  • Update badge rendering to return Option<Span> and use Vec::extend to conditionally append it.
  • Rename/update the focused unit test to match the new behavior.
File summaries
File Description
tools/wta/src/ui/command_popup.rs Stops rendering a source badge for client commands; keeps agent badge rendering and updates the corresponding unit test.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vanzue
Kai Tao (vanzue) merged commit beaf590 into main Sep 7, 2026
11 checks passed
@vanzue
Kai Tao (vanzue) deleted the dev/vanzue/slash-command-tag branch September 7, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants