Skip to content

fix: mark discarded no-reasoning prompts completed on resume#10005

Closed
houziershi wants to merge 1 commit into
NousResearch:mainfrom
houziershi:fix/9950-batch-runner-resume-discarded
Closed

fix: mark discarded no-reasoning prompts completed on resume#10005
houziershi wants to merge 1 commit into
NousResearch:mainfrom
houziershi:fix/9950-batch-runner-resume-discarded

Conversation

@houziershi

Copy link
Copy Markdown

Summary

  • mark prompts discarded for missing reasoning as completed in batch checkpoints
  • prevent --resume from re-running prompts that were intentionally discarded
  • add a regression test covering the worker return value used by checkpoint updates

Test Plan

  • uv run --extra dev python -m pytest tests/test_batch_runner_checkpoint.py -q
  • uv run --extra dev --extra web python -m pytest tests/test_batch_runner_checkpoint.py::TestBatchWorkerResumeBehavior::test_discarded_no_reasoning_prompts_are_marked_completed tests/hermes_cli/test_web_server.py::TestWebServerEndpoints::test_get_status -q

Closes #9950

@houziershi

Copy link
Copy Markdown
Author

Fix batch runner resume discarded logic, ready for review.

teknium1 pushed a commit that referenced this pull request Apr 20, 2026
…9950)

Cherry-picked from PR #10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes #9950
teknium1 pushed a commit that referenced this pull request Apr 20, 2026
…9950)

Cherry-picked from PR #10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes #9950
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #12997 #12997 — your commit was cherry-picked onto current main with your authorship preserved. Thanks @houziershi!

@teknium1 teknium1 closed this Apr 20, 2026
ulasbilgen pushed a commit to ulasbilgen/hermes-adhd-agent that referenced this pull request May 1, 2026
…ousResearch#9950)

Cherry-picked from PR NousResearch#10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes NousResearch#9950
aj-nt pushed a commit to aj-nt/hermes-agent that referenced this pull request May 1, 2026
…ousResearch#9950)

Cherry-picked from PR NousResearch#10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes NousResearch#9950
Luminet2023 pushed a commit to Luminet2023/hermes-agent that referenced this pull request May 1, 2026
…ousResearch#9950)

Cherry-picked from PR NousResearch#10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes NousResearch#9950
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…ousResearch#9950)

Cherry-picked from PR NousResearch#10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes NousResearch#9950
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…ousResearch#9950)

Cherry-picked from PR NousResearch#10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes NousResearch#9950
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…ousResearch#9950)

Cherry-picked from PR NousResearch#10005 by @houziershi.

Discarded prompts (has_any_reasoning=False) were skipped by `continue`
before being added to completed_in_batch. On --resume they were retried
forever. Now they are added to completed_in_batch before the continue.

- Added AUTHOR_MAP entry for @houziershi

Closes NousResearch#9950
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.

batch_runner retries intentionally discarded no-reasoning prompts on every --resume

2 participants