Skip to content

Fix lost background task results after end_turn#74

Open
stablegenius49 wants to merge 1 commit intoshareAI-lab:mainfrom
stablegenius49:pr-factory/issue-46-background-results
Open

Fix lost background task results after end_turn#74
stablegenius49 wants to merge 1 commit intoshareAI-lab:mainfrom
stablegenius49:pr-factory/issue-46-background-results

Conversation

@stablegenius49
Copy link

Summary

  • keep the s08 background-task loop alive until a running task either finishes or no completions remain to inject
  • wake the loop with a condition variable when background threads enqueue results
  • add regression tests covering both the wait path and the loop re-entry path
  • add tests/test_unit.py so the repo's CI entrypoint actually runs unittest discovery

Testing

  • python3 -m unittest tests.test_s08_background_tasks
  • python3 tests/test_unit.py
  • python3 -m compileall agents/s08_background_tasks.py tests/test_s08_background_tasks.py tests/test_unit.py
  • npm ci && npm run build (in web/)

Closes #46

@vercel
Copy link

vercel bot commented Mar 11, 2026

@Diaz-julieta is attempting to deploy a commit to the crazyboym's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Background task results may be lost when agent loop exits early

2 participants