Skip to content

Close GAN transcript streams cleanly - #208

Merged
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/repl-transcript-clean-shutdown-0720
Jul 20, 2026
Merged

Close GAN transcript streams cleanly#208
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/repl-transcript-clean-shutdown-0720

Conversation

@FluffyAIcode

Copy link
Copy Markdown
Owner

Summary

  • restore stdout and stderr before the transcript log closes at interpreter shutdown
  • make transcript writes and flushes safe after log closure
  • prevent successful one-shot GAN turns from terminating the AutoResearch supervisor

Test plan

  • python3 -m pytest -q tests/inference_engine/bridge/test_agent_gan_repl.py tests/inference_engine/bench/test_autoresearch_supervisor.py
  • python3 -m py_compile scripts/agent_gan_repl.py
  • subprocess shutdown reproduction exits 0 after printing [bye]

Made with Cursor

Restore standard streams before closing the transcript log so one-shot GAN runs exit successfully instead of crashing the AutoResearch supervisor during interpreter shutdown.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@FluffyAIcode
FluffyAIcode merged commit 78c512a into main Jul 20, 2026
7 checks passed
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