Trim outdated background task results and improve new-task discoverability in the task dialog
What would you like to be added?
Two related improvements to the background task dialog and the "x tasks done" pill under the input box:
-
Trim outdated terminal task results. After background tasks complete, their results linger in the "x tasks done" pill and the dialog indefinitely. Over a long session, completed tasks accumulate and clutter the indicator — making it hard to tell whether there's an active task worth checking, or just stale results from tasks that finished minutes or hours ago. Terminal entries should be automatically trimmed (e.g., after a short retention window or once a cap is reached), so the pill and dialog only surface recent or still-relevant results.
-
Show newest tasks at the top of the dialog. Currently, the dialog lists entries in launch order (oldest first, newest last). When a new background task starts, it appears at the bottom of the list — which may be off-screen if there are many stale entries above it. This makes it difficult to find and navigate to the newly launched task with keyboard navigation (↑/↓). New or running tasks should appear at the top so they're immediately visible and accessible when the dialog opens.
Why is this needed?
The current behavior creates two friction points:
-
Clutter: The "x tasks done" pill keeps counting completed tasks long after they're no longer relevant. In a typical session with several background shells, agents, or monitors, the pill can show "5 tasks done" when the user really only cares about the one that just finished or is still running. This makes the indicator less useful as a signal.
-
Poor discoverability of new tasks: When a new task starts, the user naturally wants to check on it. But opening the dialog shows all the stale entries first, and the new task is buried at the bottom. Reaching it requires many ↓ keystrokes, and with windowed scrolling the new entry may not even be visible initially. This is especially frustrating when the user just launched a task and wants to monitor it immediately.
Both issues compound each other: more stale entries means a longer list to scroll through, and the newest task is pushed further down.
中文
希望添加什么功能?
对输入框下方的"x tasks done"提示和任务对话框的两项相关改进:
-
清理过期的已完成任务结果。 后台任务完成后,其结果会一直停留在"x tasks done"提示和对话框中。在长时间会话中,已完成的任务不断堆积,使提示变得杂乱——很难判断是否有正在运行的任务值得查看,还是只是几分钟或几小时前已结束的陈旧结果。已结束的任务条目应自动清理(例如,在短时间保留窗口后或达到上限时),使提示和对话框只展示近期或仍然相关的结果。
-
在对话框顶部展示最新任务。 当前对话框按启动顺序排列条目(最早的在前,最新的在后)。当新的后台任务启动时,它出现在列表底部——如果上方有许多陈旧条目,新任务可能在可视区域之外。这使得通过键盘导航(↑/↓)很难找到并定位到刚启动的任务。新的或正在运行的任务应出现在顶部,使打开对话框时能立即看到并访问。
为什么需要这个功能?
当前行为造成两个痛点:
-
杂乱: "x tasks done"提示在任务早已不再相关后仍持续计数已完成任务。在包含多个后台 shell、agent 或 monitor 的典型会话中,提示可能显示"5 tasks done",而用户真正关心的只是刚刚完成或仍在运行的那一个。这让提示作为信号的作用减弱。
-
新任务难以发现: 当新任务启动时,用户自然想要查看它。但打开对话框首先展示所有陈旧条目,新任务被埋在底部。到达它需要多次↓按键,且在窗口化滚动下新条目可能一开始就不可见。这在用户刚启动任务想立即监控时尤其令人沮丧。
两个问题相互加剧:更多陈旧条目意味着更长的列表需要滚动,而最新任务被推到更下方。
Trim outdated background task results and improve new-task discoverability in the task dialog
What would you like to be added?
Two related improvements to the background task dialog and the "x tasks done" pill under the input box:
Trim outdated terminal task results. After background tasks complete, their results linger in the "x tasks done" pill and the dialog indefinitely. Over a long session, completed tasks accumulate and clutter the indicator — making it hard to tell whether there's an active task worth checking, or just stale results from tasks that finished minutes or hours ago. Terminal entries should be automatically trimmed (e.g., after a short retention window or once a cap is reached), so the pill and dialog only surface recent or still-relevant results.
Show newest tasks at the top of the dialog. Currently, the dialog lists entries in launch order (oldest first, newest last). When a new background task starts, it appears at the bottom of the list — which may be off-screen if there are many stale entries above it. This makes it difficult to find and navigate to the newly launched task with keyboard navigation (↑/↓). New or running tasks should appear at the top so they're immediately visible and accessible when the dialog opens.
Why is this needed?
The current behavior creates two friction points:
Clutter: The "x tasks done" pill keeps counting completed tasks long after they're no longer relevant. In a typical session with several background shells, agents, or monitors, the pill can show "5 tasks done" when the user really only cares about the one that just finished or is still running. This makes the indicator less useful as a signal.
Poor discoverability of new tasks: When a new task starts, the user naturally wants to check on it. But opening the dialog shows all the stale entries first, and the new task is buried at the bottom. Reaching it requires many ↓ keystrokes, and with windowed scrolling the new entry may not even be visible initially. This is especially frustrating when the user just launched a task and wants to monitor it immediately.
Both issues compound each other: more stale entries means a longer list to scroll through, and the newest task is pushed further down.
中文
希望添加什么功能?
对输入框下方的"x tasks done"提示和任务对话框的两项相关改进:
清理过期的已完成任务结果。 后台任务完成后,其结果会一直停留在"x tasks done"提示和对话框中。在长时间会话中,已完成的任务不断堆积,使提示变得杂乱——很难判断是否有正在运行的任务值得查看,还是只是几分钟或几小时前已结束的陈旧结果。已结束的任务条目应自动清理(例如,在短时间保留窗口后或达到上限时),使提示和对话框只展示近期或仍然相关的结果。
在对话框顶部展示最新任务。 当前对话框按启动顺序排列条目(最早的在前,最新的在后)。当新的后台任务启动时,它出现在列表底部——如果上方有许多陈旧条目,新任务可能在可视区域之外。这使得通过键盘导航(↑/↓)很难找到并定位到刚启动的任务。新的或正在运行的任务应出现在顶部,使打开对话框时能立即看到并访问。
为什么需要这个功能?
当前行为造成两个痛点:
杂乱: "x tasks done"提示在任务早已不再相关后仍持续计数已完成任务。在包含多个后台 shell、agent 或 monitor 的典型会话中,提示可能显示"5 tasks done",而用户真正关心的只是刚刚完成或仍在运行的那一个。这让提示作为信号的作用减弱。
新任务难以发现: 当新任务启动时,用户自然想要查看它。但打开对话框首先展示所有陈旧条目,新任务被埋在底部。到达它需要多次↓按键,且在窗口化滚动下新条目可能一开始就不可见。这在用户刚启动任务想立即监控时尤其令人沮丧。
两个问题相互加剧:更多陈旧条目意味着更长的列表需要滚动,而最新任务被推到更下方。