Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix repository paths for server-side CLI providers - #2242

Open
Selene29 wants to merge 1 commit into
repowise-dev:mainfrom
Selene29:fix/server-provider-repo-path
Open

Fix repository paths for server-side CLI providers#2242
Selene29 wants to merge 1 commit into
repowise-dev:mainfrom
Selene29:fix/server-provider-repo-path

Conversation

@Selene29

Copy link
Copy Markdown
Contributor

Summary

  • Build server-selected providers through the shared provider argument mapping.
  • Pass the target repository path to Codex CLI and OpenCode.
  • Add regression coverage for both repository-aware providers.

Problem

Server jobs correctly resolved the repository being indexed, but get_chat_provider_instance() dropped that path while constructing the provider.

Codex CLI then used the server process directory. In workspace mode this was the workspace root rather than a Git repository, so decision extraction failed with Not inside a trusted directory. OpenCode had the same missing path even though both providers are registered as repository-aware.

Testing

  • 62 provider and job-executor tests passed
  • Confirmed the generated Codex command uses the CalculationsArena repository path
  • Ruff lint and format checks passed
  • Whitespace checks passed

Server provider resolution loaded per-repo configuration but rebuilt constructor arguments without repo_path. Codex CLI and OpenCode therefore defaulted to the workspace server's current directory, which may not be a Git repository. Reuse the shared provider argument mapping and cover both repository-aware providers.
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