• Understand the issue: “Job’s done!” only detected in shell output, should also be detected in next_step
  • Explore codebase structure and locate relevant files
  • Run existing tests to ensure stable baseline (136 tests passing)
  • Add “Job’s done!” detection in next_step parsing logic
  • Add test case to verify new functionality
  • Verify all existing tests still pass (137 tests now passing)
  • Manual verification of the fix

Issue: The system prompt instructs to state ‘Job’s done!’ in a <next_step> block to finish tasks, but the bot only checked for completion in shell command output.

Solution: Added 6 lines in bot.ts after next_step display to check for “Job’s done!” and trigger completion behavior.

Impact: Tasks can now complete via next_step blocks as documented, maintaining all existing shell output detection functionality.