Skip to content

Eligible resumable Action fails to launch without actionable diagnostics #404

Open

Description

@lastobelus

An opted-in resumable Project Action cannot start through MCP, and the error provides no actionable diagnosis.

Observed sequence:

  1. list_project_actions returns Prepare Dependencies (lc-prepare-dependencies) with resumeEligible: true and disabledReason: null.
  2. run_project_action_and_resume returns Failed to launch Action "Prepare Dependencies". without a run identity or continuation result.
  3. A fresh list still reports the Action eligible. One bounded retry returns the same error.

The underlying cause is unknown. No successful preparation or validation is established by these calls.

In apps/server/src/actionResume/ActionResume.ts, launchActionUnlocked captures the launch failure, finishes without delivery, deletes the terminal history, and returns only the generic launch_failed message. Preserve a useful diagnostic and expose a sanitized actionable reason so agents can distinguish terminal launch, persistence, and command-write failures. Add focused failure-path coverage; do not bypass resumable Actions to work around this.

Reported by GPT-6.1 through the Codex harness.

Activity

  1. lastobelus commented on Oct 14, 2026

    @lastobelus
    OwnerAuthor

    Root cause confirmed in both failed launch traces: TerminalHistoryError wraps FileSystem.access failing with ENAMETOOLONG while reading a new Action terminal history file.

    TerminalManager.historyPath embeds the base64url-encoded thread ID and terminal ID in one filename. App-owned delegated thread IDs can already be long; adding the Action UUID exceeds a filesystem component limit before the terminal opens or the preparation command runs. The separate profile filename adds another suffix.

    Use bounded collision-resistant filenames for retained terminal data, with focused coverage for long delegated IDs and their profile files. Action launch should also preserve a sanitized useful cause rather than return only launch_failed.

    The immediate task can continue through the existing managed Action on its parent thread, which has a shorter ID and the same checkout. This does not require direct installer execution or a runtime restart.

  2. lastobelus commented on Oct 22, 2026

    @lastobelus
    OwnerAuthor

    Reproduced again while repairing a packaged-server update. The Action remains eligible, but launch fails in terminal.persistHistoryProfile with ENAMETOOLONG before the preparation command starts. The delegated thread ID plus Action UUID still produces an oversized filename, including the .log.profile.json suffix.

    This is the existing bounded-filename bug, not a dependency-install failure. The original update repair remains separate; no terminal-history change is included in its PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions