You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: stop rerunning AI prompt when task workspace is restarted #20225
Customers have identified that with a Task Workspace, when it is restarted or started up after being shut down, the original prompt will rerun. The prompt rerunning can cause unexpected behaviour in
Increase in billing as you're unnecessarily calling AI tooling
The agent ignoring previously made progress, potentially overwriting work
On restart, Tasks shouldn't rerun the prompt. See Slack for the original issue.
changed the title [-]feat: stop rerunning AI prompt when task workspace is restarted[/-][+]fix: stop rerunning AI prompt when task workspace is restarted[/+]on Oct 9, 2025
Discussed in yesterday's standup: as an interim workaround, we're going to add a warning message when restarting a task workspace or starting from a stopped state.
@david-fraley question regarding the desired behaviour:
Should no prompt ever be run when restarting a task workspace?
Should users alternatively be able to specify a "continuation" prompt?
Should users alternatively be able to specify a “continuation” prompt?
@cian since we do not save chat history or context, how would that work? A continuation prompt would be interpreted by the agent as a brand-new prompt 🤔.
Should users alternatively be able to specify a “continuation” prompt?
@cian since we do not save chat history or context, how would that work? A continuation prompt would be interpreted by the agent as a brand-new prompt 🤔.
That's exactly my point -- we would need the agent to support resuming the previous session in order for a 'continuation prompt' to work. We currently leave it up to the workspace to store the chat history and context.
Activity
[-]feat: stop rerunning AI prompt when task workspace is restarted[/-][+]fix: stop rerunning AI prompt when task workspace is restarted[/+]johnstcn commentedon Oct 14, 2025
Discussed in yesterday's standup: as an interim workaround, we're going to add a warning message when restarting a task workspace or starting from a stopped state.
@david-fraley question regarding the desired behaviour:
BrunoQuaresma commentedon Oct 14, 2025
Any thoughts on what the warning message should be?
BrunoQuaresma commentedon Oct 14, 2025
@cian since we do not save chat history or context, how would that work? A continuation prompt would be interpreted by the agent as a brand-new prompt 🤔.
johnstcn commentedon Oct 15, 2025
That's exactly my point -- we would need the agent to support resuming the previous session in order for a 'continuation prompt' to work. We currently leave it up to the workspace to store the chat history and context.
bpmct commentedon Oct 15, 2025
The Claude Code and Copilot module supports resuming... it is just not well documented or enabled in our template...
Ref:
BrunoQuaresma commentedon Oct 15, 2025
The scope of this issue isn’t very clear, so I’m moving it to Blocked until we figure this out.
BrunoQuaresma commentedon Oct 15, 2025
As decided on Slack, this will be fixed once modules are enabled to resume the task.
DevelopmentCats commentedon Oct 22, 2025
This has been resolved for the claude code module in v3.2.2 only but the other modules will soon follow
coder/registry#496
bpmct commentedon Oct 22, 2025
@DevelopmentCats can you also ensure this is fixed in our dogfood template (i think its version controlled in this repo) and our triage template?
DevelopmentCats commentedon Oct 22, 2025
@bpmct I have a PR open to bump this #20422
Ill make sure its updated in the triage template as well