Render the redesigned session inbox row in the Duo panel
What does this MR do and why?
Adds panel/agent_session_inbox_item.vue, the redesigned session row for the
Duo panel inbox (#616494 (closed)), and uses it in agent_session_inbox_tab.vue. Behind
the existing duo_panel_session_inbox flag.
Each row shows a status icon, the status label in its status colour, the
relative age, the session title, and a session ID · flow name · project name
line. agent_flow_list.vue gains a row scoped slot that defaults to today's
agent_flow_list_item, so the full page and the flag-off panel are unchanged.
Notes for review:
- Status labels are a small override table keyed on the raw
statusenum (four entries), falling back toformatAgentStatus(item.humanStatus). There was no existing label map to rename; this adds the first one. - Colour comes from
AGENT_PLATFORM_STATUS_BADGE, read directly rather than throughgetAgentStatusBadge, because that helper falls back toFAILEDand would paint unknown statuses red. Unknown statuses resolve togl-text-status-neutral, and a spec pins that. - Click handling is copied from
agent_flow_list_item.vueon purpose: realhref, early return onmetaKey || ctrlKey || shiftKey, thenpreventDefaultand$router.push. All four paths have specs.
Out of scope: the summary line (moved to #616495) and the Merged label
(needs mergeRequest { state } on the query).
Screenshots
Chromium against GDK, flag enabled.
Clicking a row opens the session detail inside the panel without changing the
page URL. Ctrl/Cmd/Shift-click opens the href in a new tab. The detail header
still reads "Input required" because the session detail view is a separate
component.
How to set up and validate locally
Feature.enable(:duo_panel_session_inbox), then reload.- Duo panel → Sessions. An awaiting-input row reads Waiting for input, a plan-approval row Approval gate, a tool-approval row Confirm action.
- Click a row: navigates inside the panel. Ctrl/Cmd-click: opens the session in a new tab.
Feature.disable(:duo_panel_session_inbox), reload. Panel and full page unchanged.
yarn jest ee/spec/frontend/ai/duo_agents_platform passes under Vue 2 and
VUE_VERSION=3; ee/spec/frontend/msw_integration/ai_duo_panel passes.



