Commit Graph

31 Commits

Author SHA1 Message Date
Svetoslav Dekov
b5a251efb3 chore: Simplify the worktree cleanup script
Remove the --deps, --json and --no-gh modes, the upstream-remote PR lookup,
the zombie bookkeeping in the process scan, the size column and the
force/safe branch deletion split. Trash goes into a mkdtemp slot and the
background delete removes whole trash directories, so leftovers need no
separate scan. Idle time now comes from the worktree HEAD reflog.

Treat a PR as merged when its head SHA is the worktree HEAD, so a
squash-merged worktree is removed after its remote branch is pruned.
The process check is Linux only; elsewhere the script only reports.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 11:33:29 +00:00
Svetoslav Dekov
7db61bff4f chore: Harden worktree cleanup trash handling and PR lookup
Look up PRs in the upstream remote as well, so a fork's open PRs are
seen. Count processes that hide their cwd and say so in the report;
zombies and sshd children cannot hold a worktree open, so they do not
block removal. Put --deps trash next to the worktree and discover
leftover trash in the usual worktree parents, not only next to listed
worktrees. Continue the background delete past a failed path. Mention
locked worktrees in the README.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 08:35:28 +00:00
Svetoslav Dekov
e628be1dc2 chore: Bound the worktree cleanup at Codespace start
Give the cleanup call in post-start.mjs a deadline so a stalled git or
gh call cannot delay the agent worker. Cap each gh lookup inside the
script; a timed-out lookup keeps the worktree.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 07:49:27 +00:00
Svetoslav Dekov
2daad8b691 chore: Harden worktree cleanup after review
Keep a worktree when the PR lookup fails instead of treating it as
having no PR. Drop the --force retry on removal: git re-checks that the
tree is clean, and ignored build outputs never block removal. Count the
cleaner's own cwd as in use. Run the cleanup before the agent worker
starts. Continue past a failed directory in --deps mode. Document that
--deps needs --yes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 07:35:40 +00:00
Svetoslav Dekov
cfd8048bd0 chore: Add a worktree cleanup script and run it at Codespace start (no-changelog)
Add `pnpm worktree:clean`. It lists the git worktrees of the repository
with the reason each one is kept or removed. With `--yes` it removes the
worktrees that are clean, fully on a remote, not in use, and whose PR is
merged or closed or that idled past a threshold with no open PR.
Codespaces run it from post-start.mjs at each container start.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 07:18:10 +00:00
Matsu
0c815bbd73
ci: Improve Preview Codespace QoL (#38916) 2026-09-17 08:38:46 +00:00
Matsu
5933694096
ci: Let a preview instance take environment from a webhook (#38894)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 10:33:25 +03:00
Declan Carroll
c3f9dedef6
feat: Use shared OpenCode harness (no-changelog) (#38602) 2026-09-15 08:27:08 +00:00
Matsu
bcad21f9b6
ci: Add some triggerable primitives for codespace workflows (#38404) 2026-09-11 08:00:58 +00:00
Matsu
eeec778a88
ci: Add an opt in label that automatically provisions a codespace (#37800)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-04 13:19:24 +00:00
Declan Carroll
fcabdcae3c
feat: Add Flaky MCP to headless OpenCode sessions (no-changelog) (#37809) 2026-09-04 07:58:32 +00:00
Declan Carroll
5adfcaa37a
perf: Back off idle Codespaces polling (no-changelog) (#37751) 2026-09-04 06:31:31 +00:00
Declan Carroll
63312d1733
feat: Add OpenCode Codespace sessions (no-changelog) (#37782) 2026-09-03 21:55:09 +01:00
Declan Carroll
30d00cc61a
fix: Load Codespaces worker secrets before startup (no-changelog) (#37767) 2026-09-03 17:14:13 +01:00
Declan Carroll
55dc07be70
feat: Stream OpenCode session progress to Slack (no-changelog) (#37741) 2026-09-03 12:47:35 +00:00
n8n-cat-bot[bot]
0a28f5365c
chore: Import writeGithubOutput from github-helpers.mjs in sync-master-to-3x.mjs (#37564)
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-02 09:16:00 +00:00
Declan Carroll
14cd525465
fix: Retry the codespace skills install and add the security plugin (no-changelog) (#36764)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-21 14:48:54 +00:00
Declan Carroll
7259c7544e
chore: Update skills marketplace name to n8n-agent-skills (#36535)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 06:01:13 +00:00
Declan Carroll
0490f99fef
build: Bump Playwright to 1.62.1 (no-changelog) (#36441)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-19 06:00:46 +00:00
yehorkardash
f7e84c9bdd
chore: Replace n8n-claude-skills usages with n8n-agent-skills (#36332) 2026-08-18 14:25:44 +00:00
Declan Carroll
51b0de1875
fix: Tell each codespace agent-worker turn that a turn is atomic (no-changelog) (#36304)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 11:50:32 +00:00
Declan Carroll
1ef82d5081
fix: Resolve the codespace box name from disk and fix the dev-loop guidance (no-changelog) (#36254)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 08:49:50 +00:00
Declan Carroll
c567279606
fix: Make CODESPACE_NAME deterministic in the codespace agent worker (no-changelog) (#36231)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-13 16:03:27 +01:00
Declan Carroll
0904287eaf
fix: Codespace agent session fixes and thread→box turn routing (no-changelog) (#36173)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-13 10:35:19 +00:00
Declan Carroll
66b3d18d06
feat: Drive codespace agent sessions from n8n via an outbound poll worker (no-changelog) (#36141)
Some checks are pending
Build: Benchmark Image / build (push) Waiting to run
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (22.23.2) (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (24.18.1) (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-12 15:42:48 +00:00
Declan Carroll
593a8b83d8
feat: Add HTTP agent broker to Codespaces agent sessions (no-changelog) (#36068)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-11 17:28:26 +00:00
Declan Carroll
4f91ee02f5
fix: Make Codespaces secrets reach non-login shells and improve agent sessions (no-changelog) (#36042)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 11:49:44 +00:00
Declan Carroll
d4bb2c63ee
feat: Add Flaky MCP, Docker-in-Docker, and rotation-proof git auth to Codespaces (no-changelog) (#35950)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 14:37:07 +00:00
Declan Carroll
c1334647a3
chore: Align dev environments to Postgres 18 (no-changelog) (#35938)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 13:32:02 +00:00
Declan Carroll
323ec1461c
feat: Graduate Codespaces agent-session config with POC fixes and session script (no-changelog) (#35879)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 10:34:39 +01:00
Declan Carroll
ad6e10943d
chore: Add Codespaces devcontainer variant for cloud agent sessions (no-changelog) (#35855)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 13:52:24 +01:00