Skip to content

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

Closed

Description

@ajianaz

Summary

crates/tole-cli/src/main.rs:1279 and :1412 still do detect_github_repo(&cwd).unwrap_or_else(|| "codecoradev/tole".into()). Issue #254 removed this fallback in session_host::open_session (no gh tool is registered when detection fails), but the fix landed in only one of three registry builders.

Impact

When repo detection fails (cwd is not a GitHub checkout), the gh tool on the run, chat, resume, mission and tole mcp faces targets the wrong repository (writes go to codecoradev/tole).

Expected

Same behavior as #254: if no repo is detected, do not register the gh tool (probe-gated).

Found by

Architecture review 2026-10-07 (verified by reading main.rs).

Activity

  1. added
    bug
    on Oct 7, 2026
  2. added a commit that references this issue on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions