Description
When capturing several terminals at once (Automatic Setup → Open New Terminal, Manual Setup, proxyman-cli, or MCP inject_terminal), there is no way to mark which terminal a flow came from.
Two Terminal.app / iTerm windows that run the same binary show up as the same Client. There is no PID on the flow (#2307). Adding a fake request header just to label the session would send that header to the server, which we do not want.
Why this feature/change is important?
Debugging two agent/CLI sessions side by side is common. Right now the only workarounds are coloring/commenting after the fact from body content, or injecting headers that leak to the origin.
Suggested behavior
When launching a tracked terminal (GUI, CLI, or MCP), accept a display-only session marker (name and/or color), e.g. session=A.
Stamp every flow from that process/window with the marker. Show it:
- as a column on the main table
- optionally as Comment / color
- on MCP (
get_flows / get_flow_detail) so agents can filter without re-parsing bodies
Do not add an HTTP header. The origin must not see the marker.
Related: query-key columns in #2736 already moved columns past headers; this is the terminal-origin equivalent.
Description
When capturing several terminals at once (Automatic Setup → Open New Terminal, Manual Setup,
proxyman-cli, or MCPinject_terminal), there is no way to mark which terminal a flow came from.Two Terminal.app / iTerm windows that run the same binary show up as the same Client. There is no PID on the flow (#2307). Adding a fake request header just to label the session would send that header to the server, which we do not want.
Why this feature/change is important?
Debugging two agent/CLI sessions side by side is common. Right now the only workarounds are coloring/commenting after the fact from body content, or injecting headers that leak to the origin.
Suggested behavior
When launching a tracked terminal (GUI, CLI, or MCP), accept a display-only session marker (name and/or color), e.g.
session=A.Stamp every flow from that process/window with the marker. Show it:
get_flows/get_flow_detail) so agents can filter without re-parsing bodiesDo not add an HTTP header. The origin must not see the marker.
Related: query-key columns in #2736 already moved columns past headers; this is the terminal-origin equivalent.