[BUG] 'f' foreground keybinding in /tasks does nothing for agent tasks

Resolved 💬 4 comments Opened Feb 5, 2026 by akizhou Closed Mar 5, 2026

Description

When viewing a running agent task in /tasks, the UI shows f to foreground as an option, but pressing f does nothing.

Steps to Reproduce

  1. Spawn a subagent using the Task tool (e.g., claude-code-guide type)
  2. Press Ctrl+B to background it
  3. Type /tasks to view running tasks
  4. Select the running agent task
  5. Press f (as shown in the UI: "f to foreground")

Expected Behavior

The agent task should be brought to the foreground.

Actual Behavior

Nothing happens. The keypress is ignored.

UI Screenshot

<img width="1866" height="460" alt="Image" src="https://github.com/user-attachments/assets/0d9f1d3b-df2d-4934-8cb6-f2c737918517" />

Notes

  • The f option only appears for agent tasks, not bash background tasks
  • k (kill) works correctly
  • Other keybindings (Esc, Enter, Space, ←) work correctly

Environment

  • Claude Code version: 2.1.31
  • OS: macOS Darwin 24.6.0

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗