Skip to content

feat: multi-window support with --new-window flag - #2

Open
brainrepo wants to merge 1 commit into
mainfrom
feat/multi-window-support
Open

feat: multi-window support with --new-window flag#2
brainrepo wants to merge 1 commit into
mainfrom
feat/multi-window-support

Conversation

@brainrepo

Copy link
Copy Markdown
Owner

Summary

  • Each payload (pipe, IPC, deep link) now opens its own independent window instead of replacing current content
  • Replaced single PendingPayload with per-window PendingPayloads HashMap keyed by window label
  • Switched from broadcast emit() to targeted emit_to(label, ...) — zero frontend changes needed
  • Added --new-window flag to bypass IPC and start a standalone process

Test plan

  • echo "# hello" | lunette — opens window with markdown
  • echo "graph TD; A-->B" | lunette while first window open — opens second window with mermaid
  • open "lunette://?data=$(echo '# deep' | base64)" twice — two separate windows
  • echo "# standalone" | lunette --new-window — opens independent process
  • cargo clippy -- -D warnings — clean
  • cargo test — 43 tests pass
  • npx tsc --noEmit — clean
  • npm run test — 27 tests pass

🤖 Generated with Claude Code

Each payload (pipe, IPC, deep link) now opens its own independent
window instead of replacing the current content. Uses per-window
pending payloads and targeted emit_to() instead of broadcast.
The --new-window flag bypasses IPC to start a standalone process.

Co-Authored-By: Claude Opus 4.6 <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