Skip to content

[script][sew] Add tool validation, pin counter, and holding error handler#7370

Merged
MahtraDR merged 2 commits intoelanthia-online:mainfrom
MahtraDR:feat/sew-improvements
Mar 30, 2026
Merged

[script][sew] Add tool validation, pin counter, and holding error handler#7370
MahtraDR merged 2 commits intoelanthia-online:mainfrom
MahtraDR:feat/sew-improvements

Conversation

@MahtraDR
Copy link
Copy Markdown
Collaborator

Summary

  • Tool validation in swap_tool: exits gracefully if the requested tool was not actually obtained, preventing silent failures mid-craft
  • "You must be holding" error handler: catches cases where the required tool is not in hand and exits cleanly instead of looping
  • Pin poke counter: tracks pin usage throughout the crafting session and reports the count in the completion message
  • Prefixed error messages: all sew error messages now start with sew: for easier identification in scrollback
  • Detailed completion message: reports recipe name, chapter, noun, pin pokes, and finish mode

All changes are additive -- the existing engaged-while-crafting handler is preserved.

Test plan

  • Normal sewing session completes with detailed summary including pin count
  • Tool not found scenario: script exits with clear error message
  • "Not holding" scenario: script exits cleanly instead of looping
  • Engaged while crafting: existing retreat + pause behavior still works

🤖 Generated with Claude Code

MahtraDR and others added 2 commits March 30, 2026 19:38
…dler

- Add swap_tool validation: exit gracefully if tool was not obtained
- Add "You must be holding" error pattern to catch tool-in-hand failures
- Add pin poke counter reported in completion message
- Prefix error messages with "sew:" for easier identification in scrollback
- More detailed completion message with recipe name, chapter, and pin count

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MahtraDR MahtraDR merged commit 1e1e312 into elanthia-online:main Mar 30, 2026
3 checks passed
@MahtraDR MahtraDR deleted the feat/sew-improvements branch March 30, 2026 06:51
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