Repository navigation
Closed
Labels
Description
Part of #3974: what remains of its cost (4), "the dialog's second wave of reads waits for the first". #3974 measured at 350 tasks that these reads started at ~0.63 s after the click, while the task itself was read from ~0.23 s. That was before the commit below; nothing has been measured since.
What already starts with the task
113ef5c (perf(platform): start a task's own reads together with the task, on main, release/0.6, train and feature-train) added usePrefetchTaskReads in services/platform/app/features/tasks/hooks/queries.ts. The task's body calls it as it mounts, and it prefetches:
- the discussion (
tasks/queries:listTaskDiscussion); - the dependencies (
tasks/queries:listTaskDependencies); - the reviewer (
tasks/queries:getTaskReviewer); - the watch state (
collab/subscriptions:isSubscribedToTask).
What still waits for the task
Paths are under services/platform/app/features/tasks/.
- The activity (
tasks/queries:listTaskActivity,useTaskActivity) and the agent runs (tasks/queries:listTaskAgentRuns,useTaskAgentRuns).- Their readers mount only once the task has arrived and rendered:
- the conversation (
components/task-conversation.tsx, throughuseTaskTimeline); - Agent cost in the details (
TaskAgentCostFieldincomponents/task-modal.tsx, throughuseTaskTimeline); - the run failure banner (
components/task-run-failure-banner.tsx).
- the conversation (
- Both reads need only the task's id and the organization.
- Their readers mount only once the task has arrived and rendered:
- The project's labels (
tasks/queries:listTaskLabels,useTaskLabels, read bycomponents/label-editor.tsx).- The read needs the task's project, so the dialog alone cannot start it before the task arrives.
- The board knows its project and could start it.
What to do
- Add the activity and the agent runs to
usePrefetchTaskReads, under the keys their hooks read. - Decide whether a board should warm its project's labels for the dialog.
- Measure before and after on a local production build with the same fixtures. fix(platform): stop the task dialog's close flash and board re-renders #3948's receipt has the harness; the manual box is
TASK-P4.
Done means:
- opening a task starts its activity and agent-run reads together with the task;
- a test shows that the prefetch fills the keys those hooks read;
- the receipt gives the before and after figures.
Activity
refactor(platform): list a task's activity and runs in its prefetch
refactor(platform): list a task's activity and runs in its prefetch
refactor(platform): list a task's activity and runs in its prefetch
refactor(platform): list a task's activity and runs in its prefetch
tale-code-bot commentedon Nov 2, 2026
Done on the feature line: feature train #5297 landed on
release/0.6by rebase at 2026-11-02 09:37:43 UTC. This issue's change is commit5317335d53798e5d127192152dd5636d13a369ba(refactor(platform): list a task's activity and runs in its prefetch) onrelease/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reachmain, so the feature-train role closes this one now. Board task: TALE-315.refactor(platform): list a task's activity and runs in its prefetch
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
perf(platform): keep the Home panel out of a board's ?task= changes
perf(platform): keep the Home panel out of a board's ?task= changes
10 remaining items
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes
refactor(platform): list a task's activity and runs in its prefetch
perf(platform): keep the Home panel out of a board's ?task= changes