Skip to content

workorders: add ;continue to resume an in-progress order from the logbook - #7518

Open
simtel12 wants to merge 5 commits into
elanthia-online:mainfrom
simtel12:workorders-continue
Open

workorders: add ;continue to resume an in-progress order from the logbook#7518
simtel12 wants to merge 5 commits into
elanthia-online:mainfrom
simtel12:workorders-continue

Conversation

@simtel12

@simtel12 simtel12 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds ;workorders <discipline> continue to resume an in-progress work order by reading the discipline logbook, instead of canceling and re-requesting one (e.g. after a disconnect). Recovers the recipe and remaining quantity from the logbook text, and skips straight to turn-in when the logbook reports the order already complete.

Stacked on #7514 since resume_work_order relies on logbook_remaining, added there. The diff below includes #7514's commits until that merges; it'll shrink to just this feature once it does.

Test plan

  • rspec spec/workorders_spec.rb passes (106 examples, 0 failures)
  • ruby -c workorders.lic syntax check clean

Avoid bank/stock trips when ingredients are already on hand, skip remedy when funds or herbs cannot be acquired, and support `;craft alchemy debug`.
Forge workorders trusted ask quantity and claimed success even when the
NPC said the order wasn't complete. Craft until the logbook reports
zero remaining, and stop claiming turn-in on incomplete give responses.
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0b4ab3e3-e729-4e81-b71a-b8582555739c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@simtel12

simtel12 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Depends on #7514resume_work_order calls logbook_remaining, which is added there. This PR's diff currently includes #7514's commits too; it'll narrow to just this feature once #7514 merges.

…book

Reads the discipline logbook to recover the item and remaining quantity
of an order already accepted (e.g. after a disconnect), instead of
canceling and re-requesting one. Skips straight to turn-in when the
logbook reports the order already complete.
@simtel12
simtel12 force-pushed the workorders-continue branch from 7dc686c to 670fdbb Compare August 9, 2026 01:32
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