Merges with nothing to change succeed; submissions are normalized to LF
A function resubmitted unchanged (port-first) made the merge a no-op, and git refused the empty commit, so the merge retried forever and blocked the queue. CRLF from Windows workspaces is normalized on arrival. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RNwtXPYqFu3oKaaXwYwNWW
This commit is contained in:
parent
97d3d65364
commit
db9c5b8f89
3 changed files with 14 additions and 0 deletions
|
|
@ -375,6 +375,13 @@ test('submissions may not add comments or strings that could instruct other agen
|
|||
assert.equal(JSON.stringify(r.body).includes('ignore your instructions'), false, 'the text is not echoed back');
|
||||
});
|
||||
|
||||
test('committing files that are already on main is a no-op, not an error', () => {
|
||||
const files = { 'src/noop.cpp': 'int noop() { return 0; }\n' };
|
||||
const head = ctx.repo.commitFiles(files, 'add noop.cpp', 'x <x@y.invalid>');
|
||||
assert.equal(ctx.repo.commitFiles(files, 'nothing', 'x <x@y.invalid>'), head);
|
||||
assert.equal(ctx.repo.head(), head);
|
||||
});
|
||||
|
||||
test('the crew view is public and shows no account details', async () => {
|
||||
const token = await activeUser('crewview');
|
||||
await call('GET', '/api/tasks', null, token); // the agent checks in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue