app:toggleTodos keybinding only works with Teammates feature, not with regular background agents
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
The app:toggleTodos action (default ctrl+t) does nothing when there are background agents/tasks running via the Agent tool with run_in_background: true.
Inspecting the minified source reveals that the handler checks getAllInProcessTeammateTasks and only toggles the panel if there are teammate tasks with status === "running":
q((E) => {
let { getAllInProcessTeammateTasks: T } = (Dv(), hf(K3f));
if (T(E.tasks).filter((k) => k.status === "running").length > 0)
switch (E.expandedView) {
case "none": return { ...E, expandedView: "tasks" };
// ...
}
})
This means the keybinding is effectively gated behind the "Teammates" feature. Regular background subagents launched via the Agent tool are not classified as "teammate tasks", so the condition always fails and the shortcut is a no-op.
Meanwhile, the /tasks slash command works fine and displays all background tasks regardless of type.
What Should Happen?
app:toggleTodos should toggle the tasks panel for all background tasks, not just teammate tasks. The behavior should match /tasks.
Steps to Reproduce
- Launch Claude Code (v2.1.76)
- Ask Claude to run a long background agent (e.g., codebase exploration)
- Press
ctrl+t(or any key bound toapp:toggleTodos) → nothing happens - Type
/tasks→ works correctly, shows the background task
Claude Code Version
2.1.76 (Claude Code)
Platform
Anthropic API (direct)
Operating System
WSL2 Ubuntu on Windows 11
Terminal/Shell
WezTerm + zsh
Additional Information
- Custom keybindings in
~/.claude/keybindings.jsonwere tested (both defaultctrl+tand customalt+j) - The keybinding file was validated (correct JSON, correct action name)
- Other Global keybindings (
ctrl+oforapp:toggleTranscript,ctrl+rforhistory:search) work perfectly cat -vconfirms the terminal correctly sends^Tforctrl+t- Tested with empty keybindings.json (defaults only) — same result
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗