Skip to content

docs: record the single instance research (Q51) - #49

Merged
daniel-kindl merged 1 commit into
mainfrom
docs/q51-single-instance
Nov 25, 2026
Merged

daniel-kindl merged 1 commit into
mainfrom
docs/q51-single-instance

Conversation

@daniel-kindl

Copy link
Copy Markdown
Owner

Closes #9

Summary

  • Records the Q51 research in docs/maps/diffy-v0.1.md: how a second diffy forwards its arguments with tauri-plugin-single-instance 2.5.5, and how git difftool (Git 2.56.1) gives files to the tool.
  • Adds twelve sourced notes and the Q51 decision line. The owner selected the option "Accept the Q51 result".
  • The main result: on Linux (D-Bus) and Windows (WM_COPYDATA), the second instance exits only after the callback of the running instance returns. Git deletes the temporary files right after the tool exits. So a callback that reads each input before it returns is safe.
  • On Windows, a forward timeout loses the input with exit code 0.
  • Adds Q74 (owner): the forwarding design. Adds Q75 (task): four tests for what stays unknown. Sets Next: Q74.
  • No ADR, and no prototype branch, because Q51 is a research question.

Evidence

  • Each note cites a permalink to the plugin source at 1281906 (tag single-instance-v2.5.5), the Git source at 03b4152 (tag v2.56.1), or Microsoft documentation.
  • A local run with Git 2.55.0: $LOCAL (/tmp/git-blob-*/f.txt) was gone 1 s after the tool exited, and the worktree $REMOTE stayed.
  • node scripts/check-maps.mjs, check-context.mjs and check-adrs.mjs pass on a clean clone. check-dashes.mjs passes, and check-writing.mjs has 0 warnings.
  • Observability: none. The change is documentation only.

Risk and rollback

Low. The change is documentation only. Revert the commit to roll back.

Adds the sourced notes, the Q51 decision and the questions Q74 and Q75.

Closes #9
@daniel-kindl
daniel-kindl merged commit 2cf2c7a into main Nov 25, 2026
1 check passed
@daniel-kindl
daniel-kindl deleted the docs/q51-single-instance branch November 25, 2026 21:26
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.

Q51: Research single instance and CLI forwarding

1 participant