gsxdsm
7d20a997b9
FN-5872: clear active-session registry on PR cleanup
...
Ensure PR-mode merge cleanup removes stale active-session registry state before deleting worktrees.
- unregister the task worktree from the active-session registry during merged-task artifact cleanup
- export the active-session registry from the engine entrypoint for lifecycle cleanup usage
- add CLI and engine regression coverage for registry cleanup and missing-entry best-effort behavior
- add a patch changeset for the published CLI package
Files changed:
.changeset/fn-5872-registry-cleanup.md | 5 ++++
.../src/commands/__tests__/task-lifecycle.test.ts | 29 +++++++++++++++++++++-
packages/cli/src/commands/task-lifecycle.ts | 8 +++++-
.../pr-mode-worktree-invariants.test.ts | 11 +++++---
packages/engine/src/index.ts | 1 +
5 files changed, 49 insertions(+), 5 deletions(-)
Fusion-Task-Id: FN-5872
Fusion-Task-Lineage: d4db24a3-7ae0-4d07-b029-7f30b2f65d2e
2026-06-02 07:46:38 -07:00
gsxdsm
9c29e2e776
FN-5829: add shared feature branch option for new tasks
...
Allow new tasks to target a shared branch-group feature branch during creation.
- Add branch-group aware branch selection handling in task workflow routes.
- Update store/types/db wiring to support and persist shared feature-branch targeting.
- Extend dashboard task creation UI/tests and route tests to cover the new option.
- Add a changeset for @runfusion/fusion documenting the new CLI/task behavior.
Files changed:
.changeset/fn-5829-shared-feature-branch-option.md | 7 ++
.../src/commands/__tests__/task-lifecycle.test.ts | 2 +-
.../core/src/__tests__/branch-group-store.test.ts | 26 ++++++
packages/core/src/db.ts | 4 +-
packages/core/src/store.ts | 9 +-
packages/core/src/types.ts | 2 +-
packages/dashboard/app/components/NewTaskModal.tsx | 2 +-
packages/dashboard/app/components/TaskForm.tsx | 9 +-
.../app/components/__tests__/NewTaskModal.test.tsx | 37 ++++++++
.../src/__tests__/branch-selection.test.ts | 12 +++
.../dashboard/src/__tests__/mission-e2e.test.ts | 8 +-
.../src/__tests__/routes-planning.test.ts | 6 +-
.../src/__tests__/routes-tasks.test.ts | 102 +++++++++++++++++++++
packages/dashboard/src/routes/branch-selection.ts | 19 +++-
.../src/routes/register-task-workflow-routes.ts | 23 +++--
15 files changed, 242 insertions(+), 26 deletions(-)
Fusion-Task-Id: FN-5829
Fusion-Task-Lineage: 7d69acc8-19a3-4112-9bf2-5ac7b5e5a929
2026-06-01 03:23:10 -07:00
gsxdsm
e2101ea721
FN-5785: add group-level pull request support for branch_groups
...
Add a single group-level pull request path for branch_groups in task lifecycle workflows.
- add CLI task lifecycle logic to create one pull request per branch group
- update task lifecycle tests to cover grouped pull request behavior and edge cases
- document the pull/merge dashboard behavior update
- add a changeset for @runfusion/fusion patch release
Files changed:
.changeset/fn-5785-group-pr.md | 7 +
docs/dashboard-guide.md | 1 +
.../src/commands/__tests__/task-lifecycle.test.ts | 294 ++++++++++++++++++++-
packages/cli/src/commands/task-lifecycle.ts | 156 ++++++++++-
4 files changed, 443 insertions(+), 15 deletions(-)
Fusion-Task-Id: FN-5785
Fusion-Task-Lineage: 3100dedd-5b41-4cde-a56c-291410563568
2026-05-31 13:50:23 -07:00
gsxdsm
0c425788cb
FN-5782: wire branch groups into merge routing
...
Connect branch_group metadata through planning and merge execution for grouped integration branches.
- propagate `branchGroup` and `branchGroupName` through core store types, merge metadata, and CLI task lifecycle APIs
- add merge coordination that computes branch-group plans and routes grouped tasks via `group-merge-coordinator`
- extend finalize-plan, merger, and reliability tests to cover grouped merge routing and integration behavior
- document the architecture update and add a patch changeset for `@runfusion/fusion`
Files changed:
.changeset/fn-5782-branch-group-merge.md | 7 +
docs/architecture.md | 2 +
packages/cli/src/commands/__tests__/task-lifecycle.test.ts | 64 ++++++++-
packages/cli/src/commands/task-lifecycle.ts | 4 +
packages/core/src/__tests__/branch-group-store.test.ts | 20 +++
packages/core/src/__tests__/task-merge.test.ts | 64 +++++++++
packages/core/src/store.ts | 22 ++-
packages/core/src/task-merge.ts | 26 +++-
packages/core/src/types.ts | 2 +-
packages/engine/src/__tests__/experiment-finalize-plan.test.ts | 33 ++++-
packages/engine/src/__tests__/group-merge-coordinator.test.ts | 62 +++++++++
packages/engine/src/__tests__/reliability-interactions/branch-group-merge-routing.test.ts | 153 +++++++++++++++++++++
packages/engine/src/experiment/finalize-plan.ts | 62 +++++++--
packages/engine/src/group-merge-coordinator.ts | 51 +++++++
packages/engine/src/index.ts | 4 +
packages/engine/src/merger.ts | 47 ++++++-
16 files changed, 601 insertions(+), 22 deletions(-)
Fusion-Task-Id: FN-5782
Fusion-Task-Lineage: 0a70cfaa-2379-4955-b295-64de1f3093c8
2026-05-31 13:50:23 -07:00
gsxdsm
4a99e3fba2
feat(FN-5455): merge fusion/fn-5455
2026-05-22 21:08:00 -07:00
Fusion (runfusion.ai)
79850b233f
feat(FN-5349): add integration branch resolver with auto-recovery fallback
...
FN-5349 adds a dedicated integration branch resolution module (`packages/engine/src/integration-branch.ts`) replacing ad-hoc dynamic fallbacks, routes merger branch conflict resolution through it, wires auto-recovery handlers (branch-worktree, contamination) to use integration branch fallback, and w
Fusion-Task-Id: FN-5349
2026-05-21 12:04:58 -07:00
Fusion (runfusion.ai)
d94ef51238
feat(FN-5047): emit task:merged across merge finalize paths
...
Fusion-Task-Id: FN-5047
Fusion-Task-Lineage: 9b03f2de-1b4a-45ad-b1ce-0a6217d6da77
2026-05-18 07:46:08 -07:00
Berlin Luk
9643341d9d
test: cover PR merge race fallback
2026-05-11 11:53:18 +08:00
Berlin Luk
356e959114
fix: reconcile PR merge race
2026-05-11 11:46:50 +08:00
Fusion
c96629e6af
feat(FN-3220): add regression tests for branch routing and merge-target beh
...
Adds regression tests for branch-mode behavior across CLI, core, and dashboard: CLI PR base branch inheritance (task-lifecycle), mission triage branch routing and merge-target trimming (task-merge), and subtask branch-mode UI coverage (SubtaskBreakdownModal, mission-e2e).
Fusion-Task-Id: FN-3220
2026-05-10 01:22:13 -07:00
Berlin Luk
021768bbf0
fix: guard PR retries for missing task branches
2026-05-09 21:04:47 +08:00
Fusion
4225f9fa01
feat(FN-3287): document PR link visibility in dashboard README
...
Merges the documentation update for FN-3287, adding 2 lines to the dashboard README covering PR link visibility behavior. This completes Step 5 of the task.
Fusion-Task-Id: FN-3287
2026-05-05 07:18:32 -07:00
gsxdsm
551977a21b
Add changeset
2026-05-04 09:54:43 -07:00
Fusion
01cf62b002
feat(FN-2920): improve remote tunnel setup and heartbeat scheduling
...
- Add cloudflared install/detection support in remote settings API, UI, and route tests
- Surface Cloudflare tunnel prerequisites in Settings modal with remote access docs updates
- Harden heartbeat runtime scheduling by avoiding stale timeout state and simplifying runtime timeout handling
- Expand CLI/core/dashboard/engine coverage for task lifecycle, agent health, and runtime heartbeat behavior
- Add changesets for heartbeat scheduling fixes and PR approval setting updates
Fusion-Task-Id: FN-2920
2026-04-29 13:49:35 -07:00
gsxdsm
8fdadb0795
fix(cli): push per-task branch to origin before creating PR; drop dead autoCreatePr
...
In PR-mode, processPullRequestMergeTask called gh pr create --head
fusion/<task-id> without ever pushing the branch to origin. PR creation
failed and the task stalled in in-review — and combined with the
recover-mergeable-review sweep bug, the stalled task got force-merged
locally instead. Push the branch via git push -u origin <branch>
immediately before createPr (skipped when an existing PR already covers
the branch).
Also remove the dead autoCreatePr setting: defined as a default in the
schema and Settings type but never read anywhere.
Related to https://github.com/Runfusion/Fusion/issues/21
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-29 13:42:17 -07:00