Skip to content

Detect externally modified items in the GUI - #832

Merged
jacebrowning merged 2 commits into
doorstop-dev:developfrom
buzzkill58:fix/gui-stale-file-detection
Sep 3, 2026
Merged

Detect externally modified items in the GUI#832
jacebrowning merged 2 commits into
doorstop-dev:developfrom
buzzkill58:fix/gui-stale-file-detection

Conversation

@buzzkill58

Copy link
Copy Markdown

Summary

  • reload the selected item from disk before displaying it
  • fingerprint the selected YAML file and prevent a stale GUI edit from overwriting a newer external change
  • show a warning when the external version wins
  • add focused tests for content changes, missing files, and blocked stale saves

Testing

  • python -m pytest -q doorstop/gui/tests/test_application.py: 4 passed
  • manually verified on Windows with Python 3.14 that reselecting an item loads an external YAML update
  • manually verified that a stale GUI edit shows the warning, is discarded, and preserves the external YAML content

@jacebrowning
jacebrowning marked this pull request as draft September 2, 2026 21:18
@jacebrowning
jacebrowning marked this pull request as ready for review September 3, 2026 14:03
@jacebrowning
jacebrowning merged commit 4e35029 into doorstop-dev:develop Sep 3, 2026
13 checks 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