Commit 94b8a86
fix(orchestrator): add switch_project/clear_history/recent_history delegators
`src/main.rs` invokes three Orchestrator methods that did not exist on
the type, causing `cargo check --bin mobile-ai` to fail with 4 E0599
errors (two for `switch_project`, one each for `clear_history` and
`recent_history`). The methods all exist on the inner ContextManager
already, so the fix is three pure-delegation forwarders.
Imports `ConversationTurn` from `crate::types` (already declared in
that module) to match the return-type shape of `recent_history`.
Restores library + binary build. Existing tests unaffected (39 lib
tests still pass; two unrelated SNN tests — `snn::tests::test_lif_neuron_reset`
and `snn::tests::test_spiking_network_reset` — fail on main and are
out of scope here).
Surfaced 2026-05-27 during the Track E Cargo CVE phantom-strip pilot
in PR #41 — the build break was visible but unrelated to the CVE work.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8f2d1f2 commit 94b8a86
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
85 | 100 | | |
86 | 101 | | |
87 | 102 | | |
| |||
0 commit comments