GeezerVison is showing github.com — feat(web): Thread details keep the agent's task list in view by DevDock-AI · Pull Request #42181 · pingdotgg/t3code
Conversation
DevDock-AI
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
When an agent works through a todo plan, the only place its progress shows is the inline "Tasks N/M"
row in the timeline. In a long run that row scrolls away, so there is no steady place to see which
step the agent is on, and after the run ends you have to scroll back to find the final list.
Change
Thread details get a Tasks card at the top that shows the thread's newest todo list: each step
with its status (pending, in progress, completed) and a done/total count.
- It updates in place while the agent works, stays after the run ends, and survives reopening the
thread.
- The list is chosen by
selectLatestTodoList in client-runtime, using the same order the server
uses for bounded snapshots (run ordinal, then todo item ordinal, then plan id). Live and hydrated
threads therefore agree, and an older plan left active never overrides a newer one. A new run keeps
the previous list until it publishes its own.
- Long plans stay usable: the list is capped at
min(22rem, 45dvh) and scrolls the step in progress
into view.
- Steps headed
Phase N: … are grouped under their phase, with a per-phase count.
- Earlier lists from the same thread stay folded under "Earlier list N" above the newest one. A list
that continues the previous one (never started, or mostly the same steps) replaces it instead.
- Settings › Chat › "Show tasks in thread details" (on by default) hides the card.
- Inline "Tasks N/M" timeline rows are unchanged. All 10 locales are translated.
Related: #29705 takes a different approach (opt-in, collapsed by default, toggled from the card menu).
Happy to align with whichever direction maintainers prefer, or to fold the pieces above into that PR.
Scope
This is a feature, not a bug fix, and the author is not on VOUCHED.td. It is opened for discussion
alongside #28421 / #29705; please close it if it doesn't fit.
Verification
- Unit:
latestTodoList.test.ts (13 tests: ordering, superseded plans, stacking, continuation) and
ThreadDetailsTasks.logic.test.ts (4 tests: phase grouping and counts).
- Browser:
ThreadDetailsTasks.browser.test.tsx (6 tests: statuses and counts, follows the thread,
30-step cap and scroll, phases, stacked lists, setting off). All 39 ThreadDetails tests in apps/web pass.
pnpm run check:changed and pnpm run i18n:check pass.
- Manual, in a desktop build on macOS with OpenCode:
- A 3-step plan advanced live 0/3 → 1/3 → 3/3.
- A 30-step plan stayed capped, with the running step centred at 12/30.
- A
Phase N: plan advanced through 3 phases to 6/6.
- A second request stacked "Earlier list 1 (6/6)" above the new list.
- A plain question produced no card.
- Light and dark themes.
- Turning the setting off hid the card; turning it on restored it.
- Not checked: mobile.
Screenshots are in the comment below.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add a "Tasks" section at the top of Thread details that shows the thread's
newest todo list (pending, in progress, completed steps and a done/total
count). It updates in place while the agent works, stays after the run
ends, and survives reopening the thread.
The list is picked by selectLatestTodoList in client-runtime with the same
rule the server uses for bounded snapshots (run ordinal, then todo item
ordinal, then plan id), reading step statuses only, so live and hydrated
threads agree and an older plan left active never overrides a newer one.
A new run keeps the previous list until it publishes its own. Inline
"Tasks N/M" timeline rows are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Agents often split a large plan into phases by naming a step "Phase N: ...".
The Tasks card now shows each such step as a phase heading with the steps
after it indented underneath and a per-phase done/total count. A phase is
completed when all its steps are, in progress when any has started, and
pending otherwise. The card's total counts steps, not headings; a phase
without steps counts as one. Lists without phase headings look as before.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…west
Each request's final task list stays in the Tasks card; earlier lists are
folded under "Earlier list N" and the newest is shown open. A list that
continues the previous one (never started, or mostly the same steps) replaces
it instead of stacking. Earlier lists come from their last todo item, since
the bounded snapshot keeps only the newest plan.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings > Chat gets "Show tasks in thread details" (threadTasksEnabled,
default true). When off, Thread details leaves the Tasks card out.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This PR changes the test suite by +23 test cases (browser +6, unit +17, server 0).
New browser test files: apps/web/src/components/chat/ThreadDetailsTasks.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.
Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for this. #29705 makes the same change and is the one being kept.
#29705 already addresses keeping the agent's task progress visible in Thread details. It is the smaller implementation to keep: it uses the existing visibility menu and provides a compact current-step row when space is limited, rather than adding a separate default-on Chat setting.
Your ordering tests and handling of long lists are useful contributions to that work. Phase grouping and earlier-list history expand the feature beyond the shared need and can be discussed separately before adding them.
Closing as a duplicate.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XL
500-999 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|