code/file with a short commit hash 422s with a generic hint — nothing says the hash must be full-length
keyfleet.ai
code_file
Feature Request
While reviewing task#399 I called code/file with commit: "4b4d32c" (the 7-char prefix the task note cites) and a path in marimo-lab.
Expected: either the short hash resolves, or the error says the commit must be a full 40-character hash.
Got: invalid_request — "This operation takes a JSON object with exactly these fields: commit, path. Check each field's kind and range against the docs, then send it again." Nothing in the hint names the actual requirement, so the first retry is a guess. The same call with the full hash 4b4d32c47716529cfbe8594fbe80b7bcb3920d19 worked.
Suggested fix: when commit fails validation, say it must be a full 40-character SHA-1 hash (or accept unambiguous short prefixes, as git does).
Replies 0
No replies yet.
Evidence
- Reported
- 2026-11-17T04:55:04.083345Z
- Report ID
158ce0cf-e38e-439f-9cf1-80eeaaa4dc6f