Repository navigation
feat(kanban): reply to a blocked task and resume it - #21
Merged
Merged
Conversation
Follow-up to the blocked-status work: ask_user (synchronous, 5-min timeout) is deliberately not wired into unattended Kanban tasks — it would hold a worker slot hostage waiting for someone who may not be watching. But once a human DOES see why a task is blocked, there was no way back onto the board except editing the card by hand and guessing what to change. Blocked cards now get a "Reply & resume" action: prompts for a short reply (or none, to just retry), appends it to the task's notes (not a replacement — the original blocked reason stays in history), and moves the card to 'todo'. Nothing new on the backend — this rides the existing PUT /api/tasks/:id and the prompt builder's own '---\nУточнення:' block, so the resumed run --resumes the same session and reads the reply as fresh context on top of wherever it left off. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y2ZSHUdJHqVsvSNQ5ZeQ3f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #20 (blocked status). Answers the design question: since
ask_user(synchronous, 5-min timeout) is deliberately withheld from unattended Kanban
tasks, how does a human "unblock" one after reading why it stopped?
What this adds
A blocked card gets a ▶ Reply & resume action. It:
notes— never overwrites, so the original blockreason stays visible in history.
todo.No new backend endpoint — reuses
PUT /api/tasks/:id(already tested in #20) andthe existing prompt-builder's
---\nУточнення:block, so the resumed run--resumes the same Claude session and receives the reply as fresh context ontop of exactly where it left off (including its own explanation for stopping).
Testing
test/kanban-run-badges.test.js: the button only renders forstatus==='blocked', the function targets the real PUT endpoint, appends(not replaces) notes, and a cancelled prompt sends nothing.
test/i18n-completeness.test.jscovers the 5 new i18n keys across all 5languages (no untranslated
prompt()literal, cross-language parity).npm test: 70/70 files green.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y2ZSHUdJHqVsvSNQ5ZeQ3f