Skip to content

Fix --git session creation timeout by starting agent after git push#167

Merged
bbrowning merged 1 commit intomainfrom
git-push-agent-headless-reordering
Mar 30, 2026
Merged

Fix --git session creation timeout by starting agent after git push#167
bbrowning merged 1 commit intomainfrom
git-push-agent-headless-reordering

Conversation

@bbrowning
Copy link
Copy Markdown
Owner

The entrypoint's wait_for_git() blocked for 120s waiting for .git that
hadn't been pushed yet, racing against the oc exec timeout. Move the
headless agent start from create_session() to after _finalize_session_create()
(which does the git push), so the entrypoint finds .git immediately.

Also make start_agent_headless_in_pod() catch all exceptions so it never
crashes session creation.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

The entrypoint's wait_for_git() blocked for 120s waiting for .git that
hadn't been pushed yet, racing against the oc exec timeout. Move the
headless agent start from create_session() to after _finalize_session_create()
(which does the git push), so the entrypoint finds .git immediately.

Also make start_agent_headless_in_pod() catch all exceptions so it never
crashes session creation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bbrowning bbrowning merged commit edfa11e into main Mar 30, 2026
6 checks passed
@bbrowning bbrowning deleted the git-push-agent-headless-reordering branch March 30, 2026 13:16
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.

1 participant