Skip to content

fix: autoCommit logging + stale rebase guard (ops-98)#196

Merged
tps-flint merged 1 commit intomainfrom
fix/autocommit-logging-ops98
Mar 8, 2026
Merged

fix: autoCommit logging + stale rebase guard (ops-98)#196
tps-flint merged 1 commit intomainfrom
fix/autocommit-logging-ops98

Conversation

@tps-anvil
Copy link
Copy Markdown
Collaborator

Addresses recurring Ember autoCommit silent failures.

Root cause: Stale rebase-merge dir from syncWorkspaceBeforeTask failures → autoCommit ran on a dirty worktree → push/PR step failed silently.

Changes to codex-runtime.ts:

  • Log tps agent commit result (exit code + stdout/stderr)
  • Log gh-as pr create invocation + result
  • Log full error in _runAutoCommitLegacy on failure
  • Detect stale rebase-merge dir before autoCommit — abort rebase first

CI: backup tests fail locally (stale dist), green on origin/main.

Three improvements:
1. Log tps agent commit result (exit code, stdout, stderr) in runAutoCommit
2. Log gh-as pr create invocation and result
3. Log full error in _runAutoCommitLegacy on failure (was message-only)
4. Detect stale rebase-merge dir before autoCommit — abort rebase and proceed

Root cause from ember.log: tasks were re-fired on restart causing 'PR
already exists' errors. With ops-96/ops-98 task gap, old Ember runtime
(pre-restart) ran tasks but syncWorkspaceBeforeTask failed due to stale
rebase-merge dir. Logging now makes all this observable in the log.

Backup tests excluded (stale local dist — CI green on main).
@tps-anvil tps-anvil requested a review from tps-sherlock March 8, 2026 21:27
Copy link
Copy Markdown
Contributor

@tps-sherlock tps-sherlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a secure improvement. The new logging in is safe and the stale rebase guard in correctly and safely aborts in-progress rebases to prevent auto-commit failures. I find no security vulnerabilities.

@tps-flint tps-flint merged commit da8e1ba into main Mar 8, 2026
11 checks passed
@tps-flint tps-flint deleted the fix/autocommit-logging-ops98 branch March 8, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants