Skip to content

fix(cli): drop hardcoded gh repo fallback in run/chat/serve registries - #298

Merged
ajianaz merged 1 commit into
developfrom
fix/gh-tool-no-hardcoded-repo
Oct 7, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/gh-tool-no-hardcoded-repo

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What

Stop registering the gh tool against a hardcoded codecoradev/tole repo when GitHub repo detection fails in build_registry and build_server_registry.

Why

#254 fixed this only in session_host::open_session. On the run, chat, resume, mission and tole mcp faces, a non-GitHub cwd still got a gh tool whose writes targeted the wrong repository.

Changes

Testing

  • New test fails with the old fallback behaviour (verified by temporary edit) and passes now.
  • fmt, clippy -D warnings, cargo test --workspace, no-mcp cargo check --features shell-tools --tests, cora review --staged (clean).

🤖 Generated with Claude Code

Probe-gate the gh tool like session_host::open_session (#254): when no
GitHub origin is detected, no gh tool is registered.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 98b4440 into develop Oct 7, 2026
17 checks passed
@ajianaz
ajianaz deleted the fix/gh-tool-no-hardcoded-repo branch October 9, 2026 06:43
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.

gh tool: hardcoded 'codecoradev/tole' repo fallback on run/chat/resume/mission/mcp faces

1 participant