Skip to content

Adopt Pierre edit mode with session drafts - #92

Merged
danielss-dev merged 1 commit into
mainfrom
codex/pierre-edit-mode
Aug 6, 2026
Merged

Adopt Pierre edit mode with session drafts#92
danielss-dev merged 1 commit into
mainfrom
codex/pierre-edit-mode

Conversation

@danielss-dev

Copy link
Copy Markdown
Owner

Summary

  • replace Strand's custom textarea/highlight overlay with Pierre's lazy-loaded <File edit> surface
  • retain unsaved working-tree buffers in session memory across tab, pane, view, workspace, and repository navigation
  • keep drafts aligned with Strand-initiated file moves and deletes
  • add an explicit Discard changes action that reloads disk content without writing
  • update the dependency, tests, task tracking, README, roadmap, learnings, and Work user guide

Why

Editing a file previously depended on Strand's custom textarea projection and the buffer was lost when the file document unmounted. Pierre now provides a native edit mode, and users need to move around the app without being forced to save incomplete work.

Impact

File writes remain explicit through Save or Mod+S, with the existing optimistic stale-write guard intact. Drafts live only for the current app session and are cleared after saving, discarding, deleting the file, or closing the repository. Historical revisions and unsupported file types remain read-only.

Validation

  • pnpm --filter ./ui exec tsc --noEmit
  • pnpm --filter strand-ui test — 53 files, 337 tests passed
  • pnpm --filter strand-ui build
  • cargo build --no-default-features
  • live WebView2/CDP verification: draft survived navigation; discard cleared the draft and restored disk text; SHA-256 remained unchanged until an explicit save

@danielss-dev
danielss-dev marked this pull request as ready for review August 6, 2026 11:05
@danielss-dev
danielss-dev merged commit 8e9805d into main Aug 6, 2026
3 checks passed
@danielss-dev
danielss-dev deleted the codex/pierre-edit-mode branch August 6, 2026 11:06
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