scheduler: decide whether an IDE file save releases a task's session
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- backend
Research direction
Start with handleWriteFile in packages/server/src/handlers/file-handlers.js, around line 106, and the releaseScheduledTaskLink entry point that #9242 added for chat, terminal, AskUserQuestion and Files-restore releases. Read #9242's review thread to see how those releases are decided. Done means a decision recorded on this issue; if it is release, a real-handler test shows that an IDE save into a task-owned session stops the next scheduled fire from driving it.
Written by the indexing model from the issue text.
Description
Follow-up from #9242's review.
Context
#9242 releases a scheduled task's ownership of its session when a person uses that session: chat input, a terminal newline, an AskUserQuestion answer, or a checkpoint Files restore. A released session is never again driven by the task, and is not destroyed when the task is deleted.
Gap
A person editing files in the session's working tree through the dashboard's IDE surface (handleWriteFile, packages/server/src/handlers/file-handlers.js, around line 106) does not release ownership. Deleting the task is still safe, because the dirty-worktree guard keeps the session. But the next scheduled fire can still drive a prompt into a session whose files the person is actively editing.
Wanted
Decide whether a file write through the IDE counts as "a person using the session". If it does, release ownership through the same entry point (releaseScheduledTaskLink), with a real-handler test.
Acceptance
- A decision recorded on this issue. If the answer is release: a test where an IDE save into a task-owned session means the next fire does not drive it.
Related: #9242, #6469.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 333
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blamechris/chroxy
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day
-
priority: low server
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9340 ·
Maintainers usually reply within 1 day
-
documentation from-review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
blamechris/chroxy#9237 ·
Maintainers usually reply within 1 day
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeOpenenhancement from-review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
blamechris/chroxy#9227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9108 ·
Maintainers usually reply within 1 day
All issues in blamechris/chroxy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
Documentation pleaseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area/host bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Fei2411/DeepSeek-Bot#3190 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days