Skip to content

commandcode-proxy unit dies when its nix store start-wrapper is GC'd — point the unit at the checkout script #2624

Closed

Description

@dezren39

Found 2026-10-30 ~02:40 CDT: commandcode-proxy.service crash-looped with status 203/EXEC — its ExecStart pointed at /nix/store/75ayxbz1...-bin/commandcode-proxy-start.sh, which no longer exists (garbage-collected). The home-manager wrapper (home/common/default.nix, writeShellScript commandcode-proxy-start-unit) only execs $HOME/code/bin/commandcode-proxy-start.sh, so the store path is a pure indirection and a GC hazard: every proxy unit built this way can die the same way (agy/ls/clef proxies use the same pattern).

Immediate fix applied on the laptop (drop-in ~/.config/systemd/user/commandcode-proxy.service.d/fix-execstart.conf): ExecStart calls /home/user/git/code/bin/commandcode-proxy-start.sh directly. Service active, :18748 /v1/models 200, and a live completion through the proxy succeeded (deepseek/deepseek-v4-flash, ~18k prompt tokens).

Durable fix: generate these proxy units to exec the checkout start scripts directly (or register the wrappers as GC roots). Same treatment for the sibling proxy units.

Acceptance criteria

  • The durable home-manager generation builds the commandcode-proxy unit (and the sibling agy/ls/clef proxy units built the same way) so ExecStart resolves to the checkout start script directly, or the store wrapper is registered as a GC root
  • After a nix GC that would previously have collected the wrapper, the units still start (no 203/EXEC crash-loop) and /v1/models answers 200
  • The laptop drop-in workaround is removed or superseded by the generated unit, with the service verified active

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: #2603 (agy-proxy, sibling proxy work — different defect, same proxy family)

    Notes: Found 2026-10-30 ~02:40 CDT: commandcode-proxy.service crash-looped 203/EXEC because its ExecStart pointed at a GC'd nix store wrapper that only execs $HOME/code/bin/commandcode-proxy-start.sh. A laptop drop-in already restored the service; what remains is the durable generation fix in home/common/default.nix for all proxy units built this way. This pass appends acceptance criteria and applies kind/priority/effort; filer session not recorded, so no source label.

    Risks: Any GC can silently kill any of these proxy units the same way; the drop-in masks the defect on one unit on one machine only.

    Suggested approach: Change the writeShellScript-based unit generation to exec the checkout scripts directly (the pattern the drop-in proves), or add GC roots; verify by rebuilding the home generation and restarting each unit.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-30T08:12Z (2026-10-30 03:12 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — labels normalized and meta/enriched applied; acceptance criteria appended to the body only where no acceptance section existed (original body preserved verbatim above it). Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found in this pass's search.
    • Expectation: see the effort label; done = the acceptance criteria are met.
    • Links: this issue
  3. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  4. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 3, 2026
  6. 24 remaining items

  7. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  8. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 4, 2026
  9. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15187 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.

  10. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — superseded by the proxy decommission, closing with evidence

    • Agent: queue worker (repo-worker-code), lane code-b
    • Session / ID: task 15187 (triage of commandcode-proxy unit dies when its nix store start-wrapper is GC'd — point the unit at the checkout script #2624)
    • Fresh revalidation (2026-11-14): the hazard in this issue no longer exists. home/openclaw/default.nix on current main records: "The commandcode-proxy and agy-proxy units themselves are gone — commandcode in the 2026-11-06 proxy-infra decommission, agy on 2026-10-30." The whole writeShellScript-wrapper proxy pattern was retired (route proxy 2026-11-04, claude-code proxy and muse proxy 2026-11-05/06, providers rebuilt as native in-process fork providers). On the laptop today: commandcode-proxy.service is inactive, no unit generation and no drop-in remain.
    • Verdict: acceptance is moot — there is no generated unit left to repoint and no store wrapper left to GC. The durable fix arrived as decommissioning, which removes the GC hazard class entirely rather than mitigating it. Closing commandcode-proxy unit dies when its nix store start-wrapper is GC'd — point the unit at the checkout script #2624 as superseded. If a proxy unit of this pattern is ever reintroduced, the acceptance criteria here (ExecStart direct to the checkout script, or the wrapper registered as a GC root) are the standing requirement.
    • Links: queue task 15187; decommission record in home/openclaw/default.nix + home/common/default.nix on main
  11. added and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 14, 2026
  12. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · already done — revival of a superseded issue

    • Agent: queue worker (repo-worker-code), lane code-b
    • Session / ID: task 16677 (revived follow-on of cancelled task 9123; triage source task 15187)
    • Revalidation (2026-11-14): issue commandcode-proxy unit dies when its nix store start-wrapper is GC'd — point the unit at the checkout script #2624 is CLOSED with status/done. Task 15187 (this lane, earlier today) dispositioned it as superseded: the commandcode-proxy units were removed in the 2026-11-06 proxy-infra decommission and the service is inactive on the laptop, so the GC hazard the issue describes no longer exists. This revival was generated by the triage-completion follow-on mechanism despite that disposition.
    • Verdict: already_done (superseded). Completing so it stops cycling; no unit remains to repoint.
    • Links: queue tasks 16677 / 15187 / 9123 (cancelled); disposition note on this issue from task 15187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions