Skip to content

fix(code-intel): remote-mode parity — local fallback, learning routing, startup dedup#92

Merged
eren23 merged 1 commit into
mainfrom
fix/code-intel-remote-parity
May 30, 2026
Merged

fix(code-intel): remote-mode parity — local fallback, learning routing, startup dedup#92
eren23 merged 1 commit into
mainfrom
fix/code-intel-remote-parity

Conversation

@eren23

@eren23 eren23 commented May 30, 2026

Copy link
Copy Markdown
Owner

Why

Follow-ups to the remote/local reliability work (#91, v0.2.24). These are the remaining remote-mode correctness gaps surfaced by the bug-hunt.

What changed

  • Route-less tools fall back to local. regex_search and call_graph have no server-side HTTP route, so proxying them crashed with AttributeError in remote mode. They now run against the local index via a new _shared._get_local_service() that bypasses the remote proxy.
  • Learning split-brain fixed. learning_tools (recall / record_learning / learning_feedback / list_learnings) always ran local while adr_tools routed to remote — so in remote mode, learnings never reached the server. They now branch to the remote proxy like adr_tools.
  • Startup dedup. server.main() and cli._cmd_serve() duplicated (and had diverged on) the remote-enable wiring. Extracted one shared _shared.enable_remote_if_configured() used by both.

Tests

  • New test_remote_local_fallback.py (local fallback + learning routing + the shared startup helper).
  • Fixed test_call_graph_tool.py to patch the getter the tool now uses.
  • Full code-intel suite: 1182 passed, 5 skipped. (3 pre-existing errors in test_deps/test_middleware are unrelated — they fail identically on main.)

🤖 Generated with Claude Code

…g, startup dedup

Task #5 follow-ups to the remote/local work:

- regex_search / call_graph have no server-side HTTP route, so proxying them crashed with AttributeError in remote mode; they now run locally via a new _shared._get_local_service() that bypasses the remote proxy.
- learning_tools (recall/record_learning/learning_feedback/list_learnings) were always local while adr_tools routed to remote — a split-brain where remote-mode learnings never reached the server. They now branch to the remote proxy like adr_tools.
- server.main() and cli._cmd_serve() duplicated (and diverged on) the remote-enable wiring; extracted one shared _shared.enable_remote_if_configured() used by both.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@eren23
eren23 merged commit 0231f61 into main May 30, 2026
3 checks passed
@eren23
eren23 deleted the fix/code-intel-remote-parity branch May 30, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant