Commit 670aa98
chore: fix merge pr 255 (#292)
* feat(console): add resizable log panel
* feat(state): wire runtime slices and summarizer
* chore(fmt): add treefmt wiring
* chore(credentials): remove legacy plaintext fallback
* ci: add evaluate workflow
* fix(theme): scope Minted to Monaco diffs
* feat(settings): split backup and tuning panels
* refactor(frontend): move backend mirrors to viewmodel
* chore(beads): update state migration issues
* fix: repair branch-wide breakage so the merge compiles & tests pass
Prior to this commit, both this branch (since a92e61b) and the merge
result failed `cargo check` with 22 errors. The user asked for cargo +
bun validation against the merge resolution, so this commit fixes the
preexisting structural breakage that the merge inherited, plus a few
follow-ups uncovered by the test suites.
Rust:
- git/mod.rs: restore the develop-side mod.rs that declares
`pub mod query` / `pub mod init` and re-exports the right names from
each. The orphan query.rs / init.rs files were already on disk; only
the mod entry was missing after a92e61b accidentally gutted it.
- evolve/mod.rs: route `repo_root` through `git::query` (its new home),
pull `FileEdit` from `shared_types`, re-export `Evolution` from
`shared_types::Evolution` (types.rs only imports it, doesn't re-export
it), and fix the `made_edit_or_build_check` typo that develop's PR
#272 introduced (variable never defined; should be
`made_edit || made_build_check`).
- shared_types/git.rs: re-add `WatcherEvent` alongside the unused
`GitState` slice type — `state/watcher.rs` still constructs it and
needs the symbol back. Marked `GitState` `#[allow(dead_code)]` until
the watcher migration finishes.
- summarize/queue_summarizer.rs: `#[allow(dead_code)]` on the
not-yet-wired worker scaffolding (a92e61b carryover).
- commands/settings_io.rs: update an EvolutionLimits test fixture to
include the new `max_token_budget` / `max_output_tokens` fields.
Frontend (post-merge tweaks):
- ipc/api.ts: drop the duplicate `devConfigs` entry the auto-merge
produced (it appeared once near `settings` and again after
`promptHistory`).
- ipc/types.ts: regenerated via `cargo run --example specta_gen_ts` to
drop duplicated `ConfigField` / `ConfigurableSchema` / `EnumVariant`
/ `FieldType` blocks the auto-merge dual-inserted.
- viewmodel/git.ts + viewmodel.test.ts: switch the
`git_state_changed` payload type from `GitState` (unused TS-side) to
`WatcherEvent` (what the Rust watcher actually emits).
- hooks/use-evolve.ts: drop the eager `mirrorChangeMapState(null)` at
the top of `handleEvolve`. Line 109 already correctly avoids
overwriting the change map for conversational responses; the eager
clear contradicted that and broke develop's PR #243 test that
exercises conversational follow-ups.
- Tests (`use-evolve.test.ts`, `use-rollback.test.ts`,
`prompt-input.test.tsx`, `system-defaults-cta.test.tsx`): swap the
removed `setGitStatus` / `setEvolveState` / `setChangeMap` /
`setSummaryAvailable` widget-store setters for the viewmodel mirror
fns (`mirrorGitState`, `mirrorEvolveState`, `mirrorChangeMapState`).
`summaryAvailable` no longer exists on the widget store; the
related assertions are dropped.
- Storybook snapshots: 30 stories were regenerated after the
AI Models tab field split, the system-defaults icon swap, and the
hunk-pill render going through `DiffLineStatsBadge`.
Validation:
- `cargo check`: clean
- `cargo test`: 366 passed
- `bun run test:unit`: 116 passed
- `bun run test:storybook`: 165 passed
- `bun run build` (tsc + vite): clean
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix signing
* refactor: restore slice-event-per-slice contract in watcher
The earlier repair commit (8a19689) brought back `WatcherEvent` to make
state/watcher.rs compile, but that struct bundles four slices' worth of
state (git_status, change_map, evolve_state, error) onto the
`git_state_changed` channel. The intended architecture is one event per
slice, each carrying just that slice's state.
Watcher now emits:
- `git_state_changed` → GitState { git_status, external_build_detected }
- `change_map_changed` → SemanticChangeMap (unchanged)
- `evolve_state_changed` is no longer emitted from the watcher at all;
evolve_state::set() writes through Slice<EvolveState>, whose
write-guard already emits the event on drop. The watcher was emitting
it twice.
Drop WatcherEvent from shared_types/git.rs and from the specta
registration; the `#[allow(dead_code)]` on GitState becomes unnecessary.
Separately, queue_summarizer's three #[allow(dead_code)] annotations
were honest: the commit a92e61b ("feat: wire runtime slices and
summarizer") never actually wired the worker — `app.manage(start_worker(handle)?)`
was missing from main.rs. Adding it now so the pipelines'
`try_state::<SummarizerState>()` path is actually used instead of always
falling back to inline processing.
Frontend follow-ups:
- viewmodel/git.ts subscribes `git_state_changed` as `GitState` now.
- viewmodel.test.ts constructs `GitState` (2 fields), not the made-up
5-field WatcherEvent.
- types.ts regenerated via `cargo run --example specta_gen_ts`.
Validation: cargo check clean, 366 cargo tests pass, 116 unit tests
pass, tsc + vite build clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: some permission tests would fail on CI
Replace with more effective and reproducible tests.
---------
Co-authored-by: Cooper Maruyama <me@cooperm.com>
Co-authored-by: cooper <1325802+czxtm@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dd78e5f commit 670aa98
112 files changed
Lines changed: 3410 additions & 1166 deletions
File tree
- .beads
- .github/workflows
- apps/native
- src-tauri
- examples
- migrations/03-evolutions-origin-branch
- src
- commands
- evolve
- managed_edits
- state
- storage
- summarize
- pipelines
- system
- src
- components/widget
- __snapshots__
- controls
- filesystem/__snapshots__
- history
- layout
- notifications
- overlays/__snapshots__
- promptinput
- settings
- __snapshots__
- steps
- summaries
- hooks
- ipc
- stores
- __mocks__
- themes
- utils
- viewmodel
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 0 additions & 3 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
246 | 247 | | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| |||
0 commit comments