stahl/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Cursor Agent f3268a9ea9
fix: make opening, closing, and unreadable portfolios safe
Re-opening a workspace no longer fails when the folder chooser lands in
its portfolio/ directory. The dialog starts beside the open workspace,
and a picked portfolio/ folder whose parent is the workspace opens that
parent.

A folder from portfolio_rs init-workspace, which has no positions.json,
opens as an empty portfolio. Any other folder stays unopened and offers
to start a workspace there or pick another one, without the previous
holdings left on screen.

Opening a file or workspace, dropping one, reloading, creating a
workspace, closing, and startup all ask before discarding unsaved edits.
Close (palette, File menu, Ctrl+Shift+W) returns to the welcome screen
behind that same question.

Add Position does nothing with no portfolio open, including the command
itself. A positions file that does not parse says whether it is empty,
not JSON, or not a list of positions, and keeps the parser's text.

Co-authored-by: Markus Zoppelt <markus@zoppelt.net>
2026-11-07 11:25:29 +00:00
..
demo.rs fix: make opening, closing, and unreadable portfolios safe 2026-11-07 11:25:29 +00:00