Skip to content

v0.6.2: repo view takes positional OWNER/NAME, repo file handles directories#8

Merged
corvid-agent merged 1 commit into
mainfrom
fix/v0.6.2-repo-fixes
May 21, 2026
Merged

v0.6.2: repo view takes positional OWNER/NAME, repo file handles directories#8
corvid-agent merged 1 commit into
mainfrom
fix/v0.6.2-repo-fixes

Conversation

@corvid-agent
Copy link
Copy Markdown
Contributor

Summary

Two real failures the corvidagent hit on a corvid-verify PR #5 lookup just now:

  1. github repo view CorvidLabs/corvid-verify failed with unknown argument 'CorvidLabs/corvid-verify'. gh repo view accepts the repo as a positional natively; the agent reasonably tried the same shape and bounced. Now repo view accepts OWNER/NAME as a positional (when the token contains a /) in addition to -R OWNER/NAME.

  2. github repo file Sources -R CorvidLabs/corvid-verify died with jq: expected an object but got: array. The contents API returns an array for directories; we were piping into a jq filter that assumed an object with .content. Probe the response type once and render: file → decoded contents (unchanged), directory → name<TAB>type<TAB>size listing. Same command works for both, agent can browse a remote repo with one tool.

Test plan

  • repo view CorvidLabs/corvid-verify --json returns repo metadata (positional form)
  • repo file Sources -R CorvidLabs/corvid-verify --ref feat/jwks-endpoint returns a directory listing instead of crashing
  • repo file Package.swift -R CorvidLabs/corvid-verify --ref feat/jwks-endpoint still returns decoded file contents
  • bash -n + shellcheck --severity=warning clean

… dirs

Two real failures we just saw the corvidagent hit on a corvid-verify
PR #5 lookup:

1. `github repo view CorvidLabs/corvid-verify` failed with
   `unknown argument 'CorvidLabs/corvid-verify'`. `gh repo view`
   takes the repo as a positional natively, and the agent reasonably
   tried the same shape. Accept it when the token looks like
   `owner/name` (contains a `/`); -R still works for explicit form.

2. `github repo file Sources -R CorvidLabs/corvid-verify` died with
   `jq: expected an object but got: array`. The contents API returns
   an array for directories; we were piping that into a jq filter
   that assumed an object with a .content field. Probe the response
   type once, then render: file -> decoded contents (unchanged),
   directory -> name<TAB>type<TAB>size listing. Same command for
   both, agent can now browse a remote repo with one tool instead
   of getting stuck.
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@corvid-agent corvid-agent merged commit 1ccbcfa into main May 21, 2026
5 checks passed
@corvid-agent corvid-agent deleted the fix/v0.6.2-repo-fixes branch May 21, 2026 23:44
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