Skip to content

Migrate to Tauri desktop app with terminal, file watcher, and table support - #2

Open
jalexray wants to merge 3 commits into
mainfrom
feature/terminal
Open

Migrate to Tauri desktop app with terminal, file watcher, and table support#2
jalexray wants to merge 3 commits into
mainfrom
feature/terminal

Conversation

@jalexray

Copy link
Copy Markdown
Owner

Summary

  • Tauri migration: Replace Flask+Vite two-process architecture with a single Tauri macOS app. React frontend runs in a native WebView, Rust backend handles file I/O, git operations, and config via IPC commands.
  • Embedded terminal: Toggleable terminal panel using portable-pty (Rust) and xterm.js, spawning the user's login shell in the repo directory.
  • File watching: Rust notify crate watches the repo for .md file changes, emits Tauri events to auto-refresh the editor and file tree. Debounced and filtered to avoid noise.
  • Table support: Add TipTap table extensions so markdown tables render as formatted, resizable tables in the WYSIWYG editor.
  • Project docs: Initialize brain-implant for knowledge management, add design system prompt, update history and sample docs.

Test plan

  • cargo tauri dev launches the app with sidebar, editor, git panel, and terminal
  • Open a markdown file with a table — verify it renders as a formatted table
  • Edit a .md file externally (e.g., from terminal) — verify the editor auto-refreshes
  • Create/delete a .md file externally — verify the sidebar file tree updates
  • Save a file via Cmd+S — verify no duplicate refresh or content flicker
  • Stage, commit, and push workflow works in the git panel
  • Terminal spawns shell, supports color, persists when panel is hidden

🤖 Generated with Claude Code

jalexray and others added 3 commits May 20, 2026 13:34
- File watcher: use notify crate to watch repo for .md changes,
  emit Tauri events, auto-refresh editor and file tree
- Table support: add TipTap table extensions so markdown tables
  render in the WYSIWYG editor
- Initialize brain-implant for knowledge management
- Add design system prompt for future redesign
- Update docs: fix history duplicates, add table example to
  welcome doc, minor getting-started correction

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When a file changes on disk while the editor has unsaved changes, an amber
banner now alerts the user with options to load the external version or keep
their edits. Also adds Cmd+F search with match highlighting, navigation,
and replace support using a custom TipTap/ProseMirror extension.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Record Tauri migration decision (2026-05-15) with context,
  reasoning, and consequences
- Record file watching approach decision (2026-05-20) with
  alternatives considered
- Save audit report (grade A, 6/6 fresh, 0 stale)
- Update brain state

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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