Skip to content

fix(web): freeze session run duration while the task is paused - #110

Merged
BaaRai merged 1 commit into
mainfrom
fix/paused-duration-freeze
Oct 21, 2026
Merged

BaaRai merged 1 commit into
mainfrom
fix/paused-duration-freeze

Conversation

@BaaRai

@BaaRai BaaRai commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Freezes the sessions-tab run duration while the task is paused.

Sessions keep state=running in the store during a task-level pause, so the sessions tab treated them as live and the duration kept ticking with Date.now() — visibly advancing time while the task and its deadline budget were frozen (the pause freeze is applied on resume per TestPauseShiftsTaskDeadlineOnResume).

  • detail page passes taskPaused (task.status === paused) to SessionsTab
  • runDuration pins to the last recorded step while paused; ticks normally otherwise
  • task list durations were already frozen (status paused falls to last_activity); no change there

Manual check path: pause a task with live sessions, watch the clock badge in the sessions tab header — it must freeze; resume — it ticks again from the last step.

Sessions keep state=running in the store during a task-level pause, so the
sessions tab treated them as live and the run duration kept ticking with
Date.now(), visibly advancing time while the task (and its deadline budget)
was frozen. Pass taskPaused down from the detail page and pin the duration
at the last recorded step while paused.

Closes #84
@BaaRai
BaaRai merged commit 39d2d63 into main Oct 21, 2026
3 checks passed
murilosoave pushed a commit to murilosoave/ARTEX that referenced this pull request Oct 25, 2026
feat(assets): 任务测试资产支持 DSL 搜索
murilosoave pushed a commit to murilosoave/ARTEX that referenced this pull request Oct 25, 2026
fix(web): freeze session run duration while the task is paused
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