Let the lead move the right pane while it shows the Project tab

This commit is contained in:
Ian Gulliver
2026-10-15 11:00:24 -07:00
parent 52fd9ea8f6
commit 54d03df19d
4 changed files with 17 additions and 4 deletions
+2 -2
View File
@@ -296,7 +296,7 @@ func (m *Manager) leadTools(l *live) []mcp.Tool {
"Tabs: transcript, changes, files, inbox (the task's open items), project (the project's dashboard: its active tasks and its TODO.md items); with only project_id, only project shows anything. "+
"Omit both task_id and project_id to clear the pane. "+
"If the pane already shows that task (or project) on that tab, only the tab order changes and you are told so, even while the human is working in the pane. "+
"Otherwise refused while the human is working in the right pane, unless what it shows is finished (a merged or discarded task, or an inbox tab with nothing left).",
"Otherwise refused while the human is working in the right pane, unless it is on the project tab or what it shows is finished (a merged or discarded task, or an inbox tab with nothing left).",
`{"type": "object", "properties": {
"task_id": {"type": "string"},
"project_id": {"type": "string", "description": "Ignored when task_id is given."},
@@ -326,7 +326,7 @@ func (m *Manager) leadTools(l *live) []mcp.Tool {
m.mu.Lock()
focused := m.paneFocused[user.Login]
m.mu.Unlock()
if focused {
if focused && current.Tab != api.TabProject {
finished, err := m.paneFinished(ctx, current)
if err != nil {
return "", err