Skip to content

fix: resumable Actions ignore project script overrides #219

Open

Description

@lastobelus

Project Actions added or edited through the desktop UI are absent from the resumable MCP Action list. This prevents an agent from launching a newly saved, explicitly opted-in Action.

The chat UI persists changes through projectScriptOverrides settings in apps/web/src/components/ChatView.tsx. ActionResume.listProjectActionsImpl and its launch lookup instead read project.scripts from the orchestration snapshot in apps/server/src/actionResume/ActionResume.ts.

Reproduction: add a uniquely named Action through Script actions, enable Allow Codex and Claude to run and resume, save, and call list_project_actions. The UI menu shows the new Action while MCP returns only the old project script list. A read-only check of the project projection confirms it contains the old list.

Expected: list and launch resolve the same effective scripts and opt-in flags as the UI, preserving the current continuation guard. No runtime restart or database editing should be required.

Observed while delivering the migration-history fix. Workaround for that delivery is an existing opted-in Action invoking a temporary self-restoring launcher that delegates to the intended clean worktree.

Model: GPT-6 Astra. Harness: Codex.

Activity

  1. lastobelus commented on Oct 26, 2026

    @lastobelus
    OwnerAuthor

    Additional MCP-only reproduction in the same Project/environment: t3_project_read initially returned scripts: []. Importing the repository definition with t3_project_update succeeds, and subsequent project reads retain the script below, but list_project_actions still returns { "actions": [] } in both the parent and a child worktree. The Project and environment identities match. Setting async: true also leaves discovery empty. No UI script editing was involved.

    {"id":"project-prep-watcher","name":"Project Prep Watcher","command":"node --import tsx prototype/certificate-translation-poc/scripts/project-prep-watcher.ts watch","icon":"test","runOnWorktreeCreate":false,"allowAgentResume":true,"async":true}

    This prevents launching the existing resumable Project Prep Watcher despite persisted opt-in. The isolated app preparation remains durable. A tracked managed exec of the exact same read-only watcher executable can read/ack retained milestones; no provider polling, detached process, direct database edits, or runtime restart was used. Please verify the effective project-script source used by read/update, Action list, and Action launch; if this differs from the override bug, split this repro into a follow-up.

  2. lastobelus commented on Oct 27, 2026

    @lastobelus
    OwnerAuthor

    The mismatch still reproduces in the parent thread after fresh tool discovery:

    • t3_project_read for project c4d3a516-855a-4371-80b8-99468d230dee returns saved script project-prep-watcher, command node --import tsx prototype/certificate-translation-poc/scripts/project-prep-watcher.ts watch, async: true, and allowAgentResume: true.
    • list_project_actions({}) in that same project returns { "actions": [] }, with no disabled entry or reason.
    • Parent thread 1c13d1d6-68d2-416c-b26a-a351bcbed8d7, environment b58f7d3a-534f-4d97-bf16-fdca8a09f774, is using worktree /Users/lasto/.lastcode/worktrees/certificate-translations/t3-dbef274c; the Project workspace is /Users/lasto/projects/certificate-translations.

    This blocks the required parent-mediated preparation watcher Action. The saved script is present and opted in; no Action launch was attempted because no eligible ID is returned. Engineering work continues independently. Please keep the target-worktree selection visible in the eventual fix, since launching the parent workspace's package against a child's isolated Project would be a separate targeting error.

  3. lastobelus commented on Oct 28, 2026

    @lastobelus
    OwnerAuthor

    Additional observed case: a read-only native preparation wait Action was saved with t3_project_update using an 18-character ID and allowAgentResume:true. The update succeeded, and a fresh t3_project_read returned the new Action. list_project_actions continued returning only the original three Actions, including after another automated follow-up. Adding the same definition to the bound worktree's t3.json also did not make it discoverable in that session. The temporary definitions were removed afterward.

    This differs from the hidden overlong-ID validation in #457: that error was corrected first, and the subsequent project update was successful. The remaining blocker is saved/effective Action discovery, so no unlisted ID was launched. No database edits or application restart were performed.

  4. lastobelus commented on Oct 29, 2026

    @lastobelus
    OwnerAuthor

    Another observed variant: an existing eligible Action keeps its old command after a successful saved-script update.

    • project-prep-watcher was already listed and opted in.
    • t3_project_update changed that same ID to an absolute executable/loader in a reviewed clean worktree. A subsequent t3_project_read returned the new command.
    • run_project_action_and_resume still returned and launched node --import tsx prototype/certificate-translation-poc/scripts/project-prep-watcher.ts watch, the previous command.
    • This repeated in runs 09a2d50e-fcc7-452d-b990-dd00b155fa5c and c166b86c-89b9-4e13-845c-deec280c8359; updating the bound worktree's t3.json also did not change the launched command. The first run preceded the saved-project update; the second followed a successful update and readback.

    The old read-only watcher could safely track this preparation target, so preparation was not interrupted. Temporary settings were restored. No database edit or LastCode restart was used.

    Please cover same-ID command replacement in addition to discovery of new Actions. Returning the effective command in launch receipts exposed this mismatch and should remain part of the contract.

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