Skip to content

stop re-opening tasks that ended more than 20 minutes ago - #227

Merged
hkonsti merged 1 commit into
mainfrom
hkonsti/task-reopen-time-limit
Nov 7, 2026
Merged

hkonsti merged 1 commit into
mainfrom
hkonsti/task-reopen-time-limit

Conversation

@hkonsti

@hkonsti hkonsti commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

A task an agent never finished is taken as left open after 20 idle minutes, but until now any later call took it up again however long ago that was, and a Chat page sub-agent woken by a message un-finished its task even hours after it stopped. Now a task can only be taken up again within 20 minutes of ending: calls, sub-tasks and finish_task for one left open longer are refused with a conflict telling the agent to start a new task. The check sits in the database layer's line lock (isOpen in db/task.ts), using a new taskEndedLongAgo helper in @proxy/utils/tasks. Chat page sub-agents whose task ended long ago get a new task with the same title and goal instead, both when a message wakes them and on their next call after a long sleep.


Open workspace in Conductor

@hkonsti
hkonsti merged commit f64e5ed into main Nov 7, 2026
3 checks passed
@hkonsti
hkonsti deleted the hkonsti/task-reopen-time-limit branch November 7, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant