[Bug]: Desktop TODOS panel ignores todo_write calls made inside codemode

Aberta
#159 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Domínio
desktop

Direção de pesquisa

Start by tracing how createCodemodeTool runs nested tools and emits events, then inspect the activeTodos logic in workspace-screen-C6Kunc9Q.js and the ACP sessionUpdate: "plan" translator. Reproduce with the todos mod enabled and codemode set to tools. Done means nested todo_write updates appear in the transcript and the tray reflects completion, including hiding when all items are complete.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug
GUI version

0.1.60

Operating system

Windows

Reproduction steps
  1. Enable the todos mod and set codemode to tools (/config or config.json).
  2. Start a multi-step task so the agent creates a todo list (todo_write).
  3. Let the agent finish the work; it will complete the list using await tools.todo_write(...) inside a codemode script, because todo_write is read-only and therefore script-first in this mode.
  4. Watch the TODOS tray above the composer, and reopen the thread afterwards.
Expected behavior

The TODOS tray and the transcript TODO card reflect the latest statuses from the nested update (all items checked off, tray hides once everything is completed).

Actual behavior
  • The tray and TODO card keep showing the original list indefinitely (e.g. 0/8, first item in_progress, rest pending), even though the agent's codemode call marked every item completed and the harness session state is correct.
  • The nested update is visible only as a generic codemode output line (✓ todo_write …); no new TODO tool row or status change is rendered.
Screenshots, recordings, or sanitized logs

Root cause: createCodemodeTool executes nested tools with runner.execute({ ..., nested: true }) and emits no tool_queued/tool_completed events. The desktop computes activeTodos only from top-level thread items whose tool name starts with todo (IJ/Bx/LJ in workspace-screen-C6Kunc9Q.js), so nested todo_write updates are invisible. The ACP sessionUpdate: "plan" translator has the same top-level-only gap.

Safety check
  • I removed credentials and private project information from this report.
Linguagem predominante
Shell
Estrelas
110
Forks
9
Merge médio
12min
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de CommandCodeAI/desktop

Todas as issues de CommandCodeAI/desktop

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.