diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx index 04a178fafa3..014fe3438a0 100644 --- a/packages/tui/src/routes/session/index.tsx +++ b/packages/tui/src/routes/session/index.tsx @@ -1701,6 +1701,15 @@ function AssistantFooter(props: { message: SessionMessageAssistant }) { function SessionSwitchMessageV2(props: { message: SessionMessageInfo }) { const ctx = use() const theme = useTheme() + if (props.message.type === "location-switched") + return ( + + + ↳ Moved to + {props.message.location.directory} + + + ) const text = () => { if (props.message.type === "agent-switched") { const agent = Locale.titlecase(props.message.agent) @@ -1710,7 +1719,6 @@ function SessionSwitchMessageV2(props: { message: SessionMessageInfo }) { } if (props.message.type === "model-switched") return switchLabel(props.message.model, ctx.models(), props.message.previous) - if (props.message.type === "location-switched") return `Switched location to ${props.message.location.directory}` return "" } return (