Skip to content

fix(pipelines): waiting on background work is not needing you, plus a Possibly stuck indicator - #33

Merged
jappyjan merged 4 commits into
feat/pipelinesfrom
t3/fix-pipeline-needs-input-active-watchers
Nov 16, 2026
Merged

jappyjan merged 4 commits into
feat/pipelinesfrom
t3/fix-pipeline-needs-input-active-watchers

Conversation

@jappyjan

@jappyjan jappyjan commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Problem

A pipeline step whose turn ended without a handoff showed "Needs you" / "Input" even while its thread still had a dev server, monitor, background task, subagent or PR watch running. That work usually wakes the agent, and a handoff is refused while it runs, so the step was waiting on its own work, not on the user.

Fix

  • One shared rule (classifyBackgroundWait in packages/shared, wrapped by threadBackgroundWait in client-runtime) classifies a thread's pending work as pull_request, background_work or possibly_stuck. The web sidebar (row, parent, progress bar), run view, coordinator panel, mobile run panel and thread list, and MCP list_pipeline_runs all use it. The server pause mechanics and Continue are unchanged.
  • New Possibly stuck indicator for any thread. It applies when the thread has no active run, has background work other than a PR watch, and its latest run ended more than N hours ago. It shows as:
    • a row status;
    • a collapsible "Possibly stuck" group on web and mobile;
    • "<Step> may be stuck" in the run view;
    • MCP attention possibly_stuck.
  • A possibly stuck current step rolls up to its pipeline parent as Possibly stuck, with an attention badge that opens the step. Work an earlier step left running does not move the pipeline.
  • New server setting possiblyStuckAfterHours (default 2, 0 = off). It is editable in web Settings → Threads → Possibly stuck and in mobile Settings → Threads.
  • Docs: docs/user/pipelines.md, docs/user/thread-sidebar.md.

Notes

  • Staleness reuses the shared minute clock. The minute string is parsed in one place (minuteTickToEpochMs in client-runtime). A missing server config never reads as stuck.

  • MCP list_pipeline_runs no longer reports a paused run as awaiting_handoff while its step's wake turn runs, which matches the clients.

  • MCP tool text grew; agentContextBudget.json is updated. The paid evals in evals/mcp-tool-use were not run: there are no API keys in this environment.

  • QA found and fixed a timezone bug in the web stuck check: the UTC minute string was parsed as local time.

  • vp run check:changed: format, lint, knip and typecheck pass. These test failures also fail on unmodified feat/pipelines:

    • Sidebar.browser.test.tsx > settled pagination
    • ProjectionStore.test.ts and Orchestrator.control-reads.test.ts (statement.stat is not a function)
    • ServerEnvironment.test.ts > install ownership

    ChatView.browser.test.tsx > rightPanelOpen timed out under load and passes when run alone.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL labels Nov 16, 2026
JappyMondo and others added 3 commits November 16, 2026 12:25
…needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JappyMondo
JappyMondo force-pushed the t3/fix-pipeline-needs-input-active-watchers branch from 78d5cdb to c866a6b Compare November 16, 2026 11:37
@github-actions github-actions Bot added size:XXL and removed size:XL labels Nov 16, 2026
… needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jappyjan
jappyjan marked this pull request as ready for review November 16, 2026 11:43
@jappyjan
jappyjan merged this pull request into feat/pipelines Nov 16, 2026
9 of 10 checks passed
jappyjan added a commit that referenced this pull request Nov 16, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 17, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 18, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 18, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 19, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 20, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 20, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 21, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 21, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 22, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 22, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 23, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jappyjan added a commit that referenced this pull request Nov 23, 2026
… Possibly stuck indicator (#33)

* fix(pipelines): a step waiting on background work no longer reads as needing you

A paused awaiting_handoff step whose thread still has pending background work (commands, monitors, background tasks, subagents, pull request watches) now shows as waiting on background work on web, mobile and MCP, instead of Needs you.

Add a Possibly stuck indicator for any thread whose last turn ended while non-PR-watch background work kept running past a threshold (setting possiblyStuckAfterHours, default 2, 0 = off): a row status, a collapsible sidebar group on web and mobile, and MCP attention possibly_stuck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web): the Possibly stuck clock no longer reads the UTC minute as local time

The shared minute clock is a UTC date-time without an offset, and Date.parse
read it as local time. The check ran a timezone offset early or late: for a
user west of UTC, any thread with unawaited background work looked stuck as
soon as its turn ended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(pipelines): a stuck step reads Possibly stuck everywhere, and all surfaces share one wait rule

Review fixes for the waiting-on-background-work and Possibly stuck work:

- A paused step that may be stuck now rolls up to its pipeline parent as
  Possibly stuck with an attention badge, not as generic Input. Only the
  current step counts, so a dev server an earlier step left running no
  longer moves a running pipeline into the Possibly stuck shelf.
- The server and the clients classify a thread's pending work with one
  shared rule (classifyBackgroundWait). MCP no longer reports a run as
  awaiting_handoff while its step's wake turn runs.
- The minute clock is parsed in one place (client-runtime
  minuteTickToEpochMs), and a missing server config never reads as stuck
  on any surface, including the mobile run panel.
- The mobile run panel's step rows use the shared wait labels, so they
  read Waiting on background work / Possibly stuck like the web.
  Short labels say Possibly stuck everywhere.
- The coordinator panel's progress bar no longer marks a step waiting on
  background work as needing you.
- The web setting moves to its own Possibly stuck section; pipeline_status
  mentions possibly_stuck.
- Smaller cleanups: one stuck clock per environment in the web sidebar,
  no per-step-row clock in the run view, mobile reads server configs from
  the presentation atom, accessible shelf labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(pipelines): a failed or gated step with stale work still reads as needing input

Possibly stuck only rolls up from a step paused at its handoff, so a failed,
stopped or gated pause keeps asking for input as MCP reports it. A run that is
over still surfaces any stuck step, and the mobile step row reads Running
during a wake turn, like the web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jan Jaap <jan.jaap@digimondo.de>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants