#8210: ui: show subagent labels in chat session dropdown
app: web-ui
stale
Cluster:
UI Enhancements and Fixes
Shows labeled subagent sessions in the chat session dropdown by appending the session key for subagent entries, making it easier to identify what each run is.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Updates the session dropdown display-name resolution so subagent sessions are easier to distinguish by appending the session key to the displayed name. This is done in `ui/src/ui/app-render.helpers.ts` by detecting subagent session keys (`:subagent:`) and including the key in the option label when a `displayName` is present, while preserving existing labeling behavior.
<h3>Confidence Score: 4/5</h3>
- This PR is likely safe to merge, with a minor UX/consistency concern around when session keys are appended.
- Change is small and localized to display-name formatting for session dropdown options; no state or API behavior changes. The main risk is inconsistent UI output between `label` and `displayName` paths, which may not match the stated intent.
- ui/src/ui/app-render.helpers.ts
<!-- greptile_other_comments_section -->
<sub>(4/5) You can add custom instructions or style guidelines for the agent [here](https://app.greptile.com/review/github)!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#5097: fix(ui): prefer session label over displayName in dropdown
by d-init-d · 2026-01-31
86.3%
#6690: UX: clearer /queue and /subagents output
by kamb5686 · 2026-02-01
80.4%
#22977: fix(ui): resolve agent names from config in session dropdown
by NikhilGaddam · 2026-02-21
79.9%
#8774: Fix/frontend session key normalization
by zhaodageng · 2026-02-04
77.1%
#14309: fix(ui): resolve chat event session key mismatch
by justonlyforyou · 2026-02-11
75.2%
#21788: ui(agents): add Start New Session action per agent
by rt219 · 2026-02-20
75.0%
#20072: feat(sessions_spawn): add sessionKey param to reuse sub-agent sessions
by Be1Human · 2026-02-18
74.8%
#21679: fix: Mission Control dashboard issues for agent status, stale sessi...
by thejawdoc · 2026-02-20
74.4%
#8471: fix(subagent): add defensive checks for undefined string fields
by adam-smeth · 2026-02-04
74.2%
#8361: docs: Add subagent configuration and allowlist guide
by soilgrowerx · 2026-02-03
73.8%