Skip to content

Persist sandnote root path across init and command execution#48

Merged
laotoutou merged 1 commit intomainfrom
fix/persist-root-path
Mar 15, 2026
Merged

Persist sandnote root path across init and command execution#48
laotoutou merged 1 commit intomainfrom
fix/persist-root-path

Conversation

@laotoutou
Copy link
Copy Markdown
Contributor

Summary

  • persist the notebook root path in the store marker during sandnote init
  • discover the nearest initialized .sandnote from the current directory upward for later commands
  • use the persisted root path for artifact reference resolution and reject duplicate init inside an initialized tree
  • add regression coverage for persisted root-path behavior and nested command execution

Closes #47

Testing

  • go test ./internal/cli ./internal/store/fsstore

@laotoutou laotoutou merged commit 15d16d9 into main Mar 15, 2026
6 checks passed
@laotoutou laotoutou deleted the fix/persist-root-path branch March 15, 2026 05:43
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.

Persist sandnote root path across init and command execution

2 participants