Repository navigation
Commit a3205ab
committed
fix(ready): integrate readiness gate with dev startup sync (overtake)
Rebase the readiness PR onto current dev and resolve the two conflict
surfaces against dev's modern startup path:
- src/cli/index.ts: keep syncCodexOnStartIfEnabled (Codex toggle + #1046
stale app-server warning) and thread the readiness gate into it as the
fourth argument, so /readyz reflects the real sync outcome without
bypassing the toggle or the write-tracking contract.
- src/codex/desired-state.ts: accept an optional readiness gate; mark
ready immediately when the Codex integration is explicitly OFF (nothing
to sync), otherwise drive the gate via runStartupReadinessSync from the
raw sync outcome (ready only on ok=true with no nonempty warning).
- src/server/readiness.ts: runStartupReadinessSync returns the raw sync
outcome so callers keep the #1046 write flags without a second call.
- structure/03_catalog-and-subagents.md: un-indent the pre-existing cache
paragraph and fix the Startup readiness heading to top-level markdown.
- tests/cli-ready.test.ts: update the source-level wiring guard to assert
the new syncCodexOnStartIfEnabled(port, config, undefined, readinessGate)
contract instead of the pre-rebase inline wiring.1 parent e7c6d2a commit a3205ab
3 files changed
Lines changed: 17 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
618 | 620 | | |
619 | 621 | | |
620 | 622 | | |
621 | | - | |
| 623 | + | |
622 | 624 | | |
623 | 625 | | |
624 | 626 | | |
625 | 627 | | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
629 | | - | |
| 631 | + | |
630 | 632 | | |
631 | | - | |
| 633 | + | |
632 | 634 | | |
633 | | - | |
| 635 | + | |
634 | 636 | | |
635 | 637 | | |
636 | 638 | | |
| |||
643 | 645 | | |
644 | 646 | | |
645 | 647 | | |
646 | | - | |
| 648 | + | |
647 | 649 | | |
648 | 650 | | |
649 | 651 | | |
| |||
0 commit comments