Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/tui/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,10 @@ function App({
setCurrentView(PANELS.CONVERSATION);
// Silently notify the agent that we're now working in the selected project.
// The conversation area is unmounted during the panel view, so stage the
// message and dispatch it once it mounts. Derive the project name the same
// way the status bar does — the segment after the last "projects/".
const projectName = projectPath.includes("projects/")
? projectPath.slice(projectPath.lastIndexOf("projects/") + "projects/".length)
: projectPath;
pendingSilentMessageRef.current = `We are working in projects/${projectName}.`;
// message and dispatch it once it mounts. Use the absolute path so the
// agent's downstream path resolution (e.g. scanAgents) is not relative to
// a mutated process.cwd().
pendingSilentMessageRef.current = `We are working in ${projectPath}.`;
}, []);

/**
Expand Down
Loading