You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codev task start --base rejects its own repository: a short SHA blocks the task immediately #60
codev task start --base and codev task check --head accept an abbreviated
SHA and record it verbatim. The drift check then compares it against the full HEAD as a plain string:
So a task started with a short SHA is blocked from its first moment:
$ codev task start --id x --base 99a46f1 ...
$ codev next
{"recommendation": "escalate: the snapshot moved",
"reason": "code changed outside the tracked builder/reviewer flow",
"blocked": true}
Nothing had changed. git rev-parse --short HEAD is 99a46f1 and HEAD is 99a46f105adbf05bafbf9f57067a9f3a4851abb5.
Why it matters beyond the inconvenience: the message says "code changed
outside the tracked builder/reviewer flow", which is alarming and wrong, and
recovering costs a pause + resume cycle. A developer copying a base from git log --oneline — the obvious place to get one — hits this every time.
Hit twice in one session: once on task check --head, once on task start --base.
Fix: normalise both sides through git rev-parse before comparing, at
write time or at compare time. Two lines, plus a test that a short and a full
SHA for the same commit compare equal.
Activity