Commit 357461b
fix(orchestrator): add switch_project/clear_history/recent_history delegators (restore bin build) (#42)
## Summary
\`src/main.rs\` calls three Orchestrator methods (\`switch_project\`,
\`clear_history\`, \`recent_history\`) that don't exist on the type, so
\`cargo check --bin mobile-ai\` fails with 4 E0599 errors. All three
methods already exist on the inner \`ContextManager\`, so the fix is
three pure-delegation forwarders.
## Changes (16 lines)
- \`src/orchestrator.rs\`:
- Import \`ConversationTurn\` from \`crate::types\` (already declared
there) for \`recent_history\`'s return type
- Add \`Orchestrator::switch_project(&mut self, impl Into<String>)\` →
delegates to \`self.context.switch_project\`
- Add \`Orchestrator::clear_history(&mut self)\` → delegates to
\`self.context.clear_history\`
- Add \`Orchestrator::recent_history(&self, usize) ->
Vec<ConversationTurn>\` → delegates to \`self.context.recent_history\`
## Verification
- \`cargo check --workspace\` — green
- \`cargo test --lib\` — 39/41 pass; the 2 failing tests
(\`snn::tests::test_lif_neuron_reset\` and
\`snn::tests::test_spiking_network_reset\`) fail on main HEAD and are
unrelated to this fix (SNN spike-reset behaviour, out of scope here).
## Context
Surfaced 2026-05-27 by PR #41 (Cargo CVE phantom-strip pilot). #41's
body noted the four pre-existing E0599 errors as out-of-scope for the
CVE work and worth fixing separately. This is that follow-up.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8f2d1f2 commit 357461b
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