Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent_os/proof_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def _git_status(root: Path, *paths: str) -> str:
)
if result.returncode != 0:
return ""
return result.stdout.strip()
return result.stdout.rstrip()


def _status_paths(status_text: str) -> list[str]:
Expand Down
2 changes: 2 additions & 0 deletions tests/test_proof_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def test_proof_surface_distinguishes_current_main_snapshot_and_local_readback(
assert dirty.committed_dashboard_state == "modified_local_readback"
assert dirty.generated_readback_state == "local_uncommitted_readback"
assert dirty.merge_claim == "current_main_proof_valid"
assert "docs/dashboard.md" in dirty.generated_readback_paths
assert "ocs/dashboard.md" not in dirty.generated_readback_paths


def test_proof_surface_avoids_merge_claim_for_branch_or_stale_proof(tmp_path: Path) -> None:
Expand Down
Loading