Commit 669e799
feat(issue-fix): bootstrap LoopX automatically on first start
A fresh user's repository has no .loopx control plane, which previously
surfaced as a raw "Failed to read LoopX Issue-Fix state" error banner
the moment the panel opened. Pre-bootstrap is a normal state, not an
error: status/poll now return null for unconnected repositories, the
header says "not connected yet — select issues and press Start", and
the Start command runs # LoopX Bootstrap
- ok: `True`
- dry_run: `False`
- project: `C:\codeagent\BitFun`
- goal_id: `bitfun-goal`
- registry: `C:\codeagent\BitFun\.loopx\registry.json`
- state_file: `C:\codeagent\BitFun\.codex\goals\bitfun-goal\ACTIVE_GOAL_STATE.md`
- goal_doc: `None`
- goal_doc_exists: `False`
- runtime_root: `C:\Users\huawei\.codex\loopx`
- registry_goal_action: `kept-existing`
- state_action: `kept-existing`
- execution_profile: `cadence=bounded_progress_segment minimum=multi_surface_or_implementation include=coherent_artifact,targeted_validation,state_writeback spend_rule=spend_only_after_artifact_validation_writeback small_streak_threshold=2`
- onboarding_acceptance_required: `True`
- autonomous_advance_choice_required: `True`
- codex_app_heartbeat: `ask`
- heartbeat_opt_in_required: `True`
- host_loop_activation_required: `True`
- onboarding_todos_written: `False`
- global_sync: `True`
## Actions
- `C:\codeagent\BitFun\.loopx\registry.json`: wrote (kept-existing)
- `C:\codeagent\BitFun\.codex\goals\bitfun-goal\ACTIVE_GOAL_STATE.md`: kept-existing ()
- `C:\Users\huawei\.codex\loopx\registry.global.json`: synced (bitfun-goal)
## Onboarding Scan
- schema: `loopx_project_onboarding_v0`
- git_repo: `True`
- status_path_count: `10`
- recent_commits: `5`
- signal_files: `README.md, AGENTS.md, CONTRIBUTING.md, package.json, Cargo.toml`
- raw_file_bodies_read: `False`
- status_sample:
- `A BitFun-Installer/src-tauri/Cargo.lock`
- `M src/apps/desktop/src/api/issue_fix_api.rs`
- `M src/crates/services/services-integrations/src/loopx_issue_fix/autonomous.rs`
- `M src/web-ui/src/app/components/panels/issue-fix/IssueFixPanel.tsx`
- `M src/web-ui/src/infrastructure/api/service-api/IssueFixAPI.ts`
- recent_commit_sample:
- `7a0db930d` feat(issue-fix): bundled LoopX sidecar and three-tier readiness probe
- `441cfc424` Merge remote-tracking branch 'origin/main' into feat/loopx-issue-fix
- `386d352a3` fix(desktop): also shrink oversized restored windows into the work area
- `ddf07a48d` fix(issue-fix): make 'Open panel' work from any scene
- `8fe67c5cb` Merge pull request #2064 from ldc111/main
## Proposed Onboarding Candidates
1. [P1] Inspect current uncommitted changes (A BitFun-Installer/src-tauri/Cargo.lock, M src/apps/desktop/src/api/issue_fix_api.rs, M src/crates/services/services-integrations/src/loopx_issue_fix/autonomous.rs, M src/web-ui/src/app/components/panels/issue-fix/IssueFixPanel.tsx, M src/web-ui/src/infrastructure/api/service-api/IssueFixAPI.ts) and decide what belongs in the first LoopX segment before editing.
- reason: The repo already has local changes, so the first safe step is ownership and scope classification.
- metadata: `advancement_task:repo_status_review`
2. [P1] Summarize the last 5 commits and extract the safest next bounded project follow-up.
- reason: Recent commits are a fast signal of current project direction without reading private bodies.
- metadata: `advancement_task:commit_summary`
3. [P1] Identify the fastest validation command from package.json, Cargo.toml and record whether it is safe to run now.
- reason: Validation entrypoints are visible from top-level project metadata.
- metadata: `advancement_task:validation_plan`
4. [P2] Build a compact read-only project map from README.md, AGENTS.md, CONTRIBUTING.md, package.json, Cargo.toml and note authority sources, risks, and first useful handoff.
- reason: Top-level project files can seed a useful map before any implementation work.
- metadata: `advancement_task:read_only_map`
## Accept Candidate Commands
Run only the commands for candidates the user accepts, then refresh state.
- `loopx --registry '.loopx\registry.json' todo add --goal-id bitfun-goal --role agent --text '[P1] Inspect current uncommitted changes (A BitFun-Installer/src-tauri/Cargo.lock, M src/apps/desktop/src/api/issue_fix_api.rs, M src/crates/services/services-integrations/src/loopx_issue_fix/autonomous.rs, M src/web-ui/src/app/components/panels/issue-fix/IssueFixPanel.tsx, M src/web-ui/src/infrastructure/api/service-api/IssueFixAPI.ts) and decide what belongs in the first LoopX segment before editing.' --task-class advancement_task --action-kind repo_status_review`
- `loopx --registry '.loopx\registry.json' todo add --goal-id bitfun-goal --role agent --text '[P1] Summarize the last 5 commits and extract the safest next bounded project follow-up.' --task-class advancement_task --action-kind commit_summary`
- `loopx --registry '.loopx\registry.json' todo add --goal-id bitfun-goal --role agent --text '[P1] Identify the fastest validation command from package.json, Cargo.toml and record whether it is safe to run now.' --task-class advancement_task --action-kind validation_plan`
- `loopx --registry '.loopx\registry.json' todo add --goal-id bitfun-goal --role agent --text '[P2] Build a compact read-only project map from README.md, AGENTS.md, CONTRIBUTING.md, package.json, Cargo.toml and note authority sources, risks, and first useful handoff.' --task-class advancement_task --action-kind read_only_map`
## Autonomy And Heartbeat Choice
- heartbeat_opt_in_instruction: Ask the user whether to enable the Codex App heartbeat. heartbeat=yes means create or update a recurring Codex App automation from an identity-scoped `loopx heartbeat-prompt --thin` task body; heartbeat=no means keep the goal manual or on-demand.
- Ask the user whether Codex may start autonomous advancement. If autonomous=yes, run the quota guard and execute the first accepted Agent Todo; if autonomous=no, stop after writing accepted todos and refresh-state.
## Next Commands
- `loopx --registry .loopx\registry.json registry`
- `loopx --registry .loopx\registry.json status`
- `loopx --registry .loopx\registry.json check --scan-root C:\codeagent\BitFun`
- `loopx --format json --registry C:\Users\huawei\.codex\loopx\registry.global.json quota should-run --goal-id bitfun-goal --runtime-profile generic_cli`
- `loopx --registry .loopx\registry.json refresh-state --goal-id bitfun-goal`
- `loopx --registry C:\Users\huawei\.codex\loopx\registry.global.json status`
- `loopx --registry .loopx\registry.json history --goal-id bitfun-goal`
## Install / Update Hint
If this local LoopX install is missing or stale, rerun the no-clone installer, refresh PATH, and confirm with loopx doctor before continuing project delivery.
```bash
curl -fsSL https://raw.githubusercontent.com/huangruiteng/loopx/main/scripts/install-from-github.sh | bash
export PATH="$HOME/.local/bin:$PATH"
loopx doctor
```
## Boundary Note
Add .loopx/ and .codex/goals/ to the project .gitignore if the goal state contains private evidence. (BitFun's continuous-repair
objective, controller role) plus before
writing the first intake todos. Verified end to end on a fresh git repo
with the PyInstaller sidecar: bootstrap -> register -> intake -> todo
projection -> compact heartbeat generation all succeed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 7a0db93 commit 669e799
8 files changed
Lines changed: 5892 additions & 42 deletions
File tree
- BitFun-Installer/src-tauri
- src
- apps/desktop/src/api
- crates/services/services-integrations/src/loopx_issue_fix
- web-ui/src
- app/components/panels/issue-fix
- infrastructure/api/service-api
- locales
- en-US/panels
- zh-CN/panels
- zh-TW/panels
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
156 | | - | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
175 | | - | |
| 180 | + | |
176 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
177 | 185 | | |
178 | 186 | | |
179 | 187 | | |
| |||
184 | 192 | | |
185 | 193 | | |
186 | 194 | | |
187 | | - | |
| 195 | + | |
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| |||
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
309 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
310 | 329 | | |
311 | 330 | | |
312 | 331 | | |
| |||
Lines changed: 110 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| |||
230 | 239 | | |
231 | 240 | | |
232 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
233 | 296 | | |
234 | 297 | | |
235 | 298 | | |
| |||
523 | 586 | | |
524 | 587 | | |
525 | 588 | | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
555 | 592 | | |
556 | 593 | | |
557 | 594 | | |
| |||
572 | 609 | | |
573 | 610 | | |
574 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
575 | 656 | | |
576 | 657 | | |
577 | 658 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| 277 | + | |
| 278 | + | |
274 | 279 | | |
| 280 | + | |
275 | 281 | | |
276 | 282 | | |
277 | 283 | | |
| |||
304 | 310 | | |
305 | 311 | | |
306 | 312 | | |
307 | | - | |
| 313 | + | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
| |||
730 | 736 | | |
731 | 737 | | |
732 | 738 | | |
733 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
734 | 742 | | |
735 | 743 | | |
736 | 744 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
| |||
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
121 | | - | |
| 128 | + | |
| 129 | + | |
122 | 130 | | |
123 | | - | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
0 commit comments