Skip to content

fix: warn when a checkout's internal/ is a real folder while a vault is named - #840

Open
bllshttng wants to merge 3 commits into
mainfrom
bugfix/x-0db9-checkout-whose-internal-is
Open

bllshttng wants to merge 3 commits into
mainfrom
bugfix/x-0db9-checkout-whose-internal-is

Conversation

@bllshttng

Copy link
Copy Markdown
Contributor

Summary

  • fno doctor reports a vault link issue when a checkout's internal/ is a real folder and obsidian.vault is named. Vault writes from that checkout miss Obsidian.
  • scripts/setup/setup-worktree.sh prints a warning for the same condition in the canonical checkout. Its exit status does not change.
  • The fix warns only. It never moves user data.

Changes

  • crates/fno/src/config/config_doctor/checks.rs: check_vault_internal_link and vault_internal_problems, added as a tenth report in run_doctor.
  • crates/fno/src/config/config_doctor/config_doctor_tests.rs: one test for the warn case and the three silent cases.
  • scripts/setup/setup-worktree.sh: a non-fatal warning before the canonical-equals-worktree guard.

Test Plan

  • fno doctor on a checkout with a real internal/ and a named vault prints the vault link issue.
  • fno doctor on the symlink shape prints no vault link issue.
  • bash scripts/setup/setup-worktree.sh from a worktree warns about a real canonical internal/ and exits as before.

Unmeasured

P5 stays UNMEASURED. The 2026-10-23 stray writes were not traced to a checkout-relative path. This fix does not depend on that attribution.

Docs: fno-web#364

Test delta

Language Added Removed Net
Python 0 0 0
Rust 1 0 1
Shell 0 0 0
Total 1 0 +1

Review

Reviewed at 65b43a7: 1 rounds, 0 findings disposed.

Fixes x-4955 (x-0db9)

…a vault is named

Vault writes made into a real internal/ miss Obsidian. The doctor now
reports it and names the relink step. Git tracks no internal/, so a real
one is never repo content.
…lder

The script never touches the canonical checkout's internal/. It names
the doctor remedy instead, since only config knows the vault path. The
exit status is unchanged, so target start keeps going.

@bllshttng bllshttng left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fno review: level=low round=1 findings=0 verdict=pass head=65b43a7d

The vault-link check added two string-key JSON reads, and the test indexed
the problem list. Both trip CI: the value-reads ratchet and clippy's
indexing_slicing. Deserialize the merged settings once instead.

This branch has not been deployed

No deployments
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