Repository navigation
feat(site): add pause/resume actions to task page - #21952
Merged
Merged
Conversation
EhabY
force-pushed
the
show-pause-resume-in-task-page
branch
from
February 5, 2026 18:41
8c73628 to
bc1167c
Compare
DanielleMaywood
left a comment
Contributor
There was a problem hiding this comment.
Other than some issues with the mutations, looks good
EhabY
force-pushed
the
show-pause-resume-in-task-page
branch
from
February 9, 2026 09:34
bc1167c to
009d823
Compare
EhabY
force-pushed
the
show-pause-resume-in-task-page
branch
2 times, most recently
from
February 9, 2026 11:07
847dd00 to
f85c81d
Compare
DanielleMaywood
approved these changes
Feb 9, 2026
Contributor
Author
|
Oh right, I've missed those. I'll update them here since it's a very small change! |
Add the ability to pause a running task and resume a paused task directly from the TaskPage. This includes showing contextual messages when a task is paused (manual vs timeout) and proper error handling with dialogs for API errors. - Extract task action logic into reusable hooks (useTaskActions.ts) - Add mutation configs for custom error handling scenarios - Move TaskActionButton to modules/tasks for better organization - Add pause button to TaskStartingAgent component - Show appropriate state messages for transitioning states (pausing, canceling, deleting)
Move pauseTask/resumeTask mutation configs from useTaskActions.ts hook wrappers into api/queries/tasks.ts, following the codebase convention of defining mutation configs in api/queries/ and using useMutation inline.
EhabY
force-pushed
the
show-pause-resume-in-task-page
branch
from
February 9, 2026 20:21
f85c81d to
dbe3bee
Compare
Contributor
Documentation CheckNew Documentation Needed
Automated review via Coder Tasks |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.


Summary
Changes
TaskActionButtontomodules/tasks/for shared accesstaskActions.tswith pure helpers (canPauseTask,canResumeTask,isPauseDisabled)useTaskActions.tswith mutation hooks and configsTaskStateMessagecomponent for consistent state displaysCloses coder/internal#1267