Skip to content

fix(interactive): tolerate already-closed shutdown#82

Merged
GUVWAF merged 1 commit into
meshtastic:masterfrom
Komzpa:codex/interactive-idempotent-shutdown
May 18, 2026
Merged

fix(interactive): tolerate already-closed shutdown#82
GUVWAF merged 1 commit into
meshtastic:masterfrom
Komzpa:codex/interactive-idempotent-shutdown

Conversation

@Komzpa
Copy link
Copy Markdown
Contributor

@Komzpa Komzpa commented May 16, 2026

Summary

  • make interactive simulator shutdown tolerate already-closed TCP interfaces after plot/exit
  • ignore only EBADF from Meshtastic exitSimulator() / interface close, while preserving other shutdown errors
  • tolerate Docker auto-remove NotFound during container stop and keep other Docker failures visible

Refs #35, especially #35 (comment).

Validation

  • MPLBACKEND=Agg python3 -m unittest tests.test_interactive -v
    • 7 tests OK
  • MPLBACKEND=Agg python3 -m unittest discover -s tests -v
    • 31 tests OK
  • python3 -m compileall -q lib tests
  • git diff --check
  • codex review --base origin/master
    • no actionable correctness issues found
  • GitHub Actions Tests / unittest on 8c9f78a96b38fe9744c123cdf61f14e92b1296b7
    • passed

@Komzpa Komzpa force-pushed the codex/interactive-idempotent-shutdown branch from 8e7f158 to 812de26 Compare May 16, 2026 05:30
@Komzpa Komzpa force-pushed the codex/interactive-idempotent-shutdown branch from 812de26 to 8c9f78a Compare May 16, 2026 05:32
@Komzpa
Copy link
Copy Markdown
Contributor Author

Komzpa commented May 18, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Member

@GUVWAF GUVWAF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@GUVWAF GUVWAF merged commit b835776 into meshtastic:master May 18, 2026
1 check passed
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.

2 participants