The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(update): a pre-move syntax refusal leaves dirty work in the tree, not a stash
Teknium48f41b0e52b3
diff --git a/tests/hermes_cli/test_update_target_identity.py b/tests/hermes_cli/test_update_target_identity.pyindex 1bb0457f9d4..683d141f218 100644--- a/tests/hermes_cli/test_update_target_identity.py+++ b/tests/hermes_cli/test_update_target_identity.py@@ -465,6 +465,13 @@ def test_update_syntax_failure_restores_pre_update_head(update_tree, monkeypatchelse 'Pulled code has a syntax error') in outputassert git(t.clone, 'rev-parse', 'HEAD') == t.baseassert not (t.clone / 'hermes_cli' / 'config.py').exists()+ if sync_phase == 'origin' and dirty:+ # Refused before the autostash too: the local work never left the tree, index included.+ assert not git(t.clone, 'stash', 'list')+ assert local.read_bytes() == unstaged+ assert git(t.clone, 'show', ':.gitignore') == staged.decode().strip()+ assert (t.clone / 'notes.txt').read_bytes() == b'untracked local work\n'+ returnassert not git(t.clone, 'status', '--porcelain')assert bool(git(t.clone, 'stash', 'list')) is dirtyif dirty: