Task Decomposition View During Execution #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & Why
When Timmy executes a job, the Workshop shows a spinner. Adding visible task decomposition — where Timmy breaks the request into 2-4 named sub-steps and checks them off — transforms execution from a black box into a transparent, watchable process.
Done looks like
Out of scope
Tasks
job_stepsWebSocket event.job_step_updateevents.job_steps, animates step completion onjob_step_update, collapses on job completion.Relevant files
artifacts/api-server/src/lib/agent.tsartifacts/api-server/src/routes/jobs.tsartifacts/api-server/src/routes/events.tsthe-matrix/js/ui.jsthe-matrix/js/websocket.jsPR created: http://143.198.27.163:3000/replit/timmy-tower/pulls/93
Implemented all three tasks from the issue:
Decomposition call —
decomposeRequest()inagent.tsuses Haiku to generate 2-4 sub-step labels at job start; stores them in thedecomposition_stepsDB column and broadcasts ajob_stepsWebSocket event.Step progress tracking —
runWorkInBackgroundinjobs.tsuses a character-count heuristic to advance the active step as streaming progresses, broadcastingjob_step_updateevents. All steps are marked complete when streaming finishes.Checklist UI panel —
ui.jsrenders a fixed-position panel with animated checkmarks (✓ completed, ▶ active, ○ pending). Collapses to ✓ Done on job completion and fades out after 2.5s.