You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Basic text editor inside the Deck for drafting with agents #66
Drafting text with an agent currently means a round trip outside the Deck. An agent proposes a draft in chat, the person pastes it into a Google Doc, edits it there, then pastes the result back to the agent (and onward to wherever it is posted). The agent never sees the edits unless they are pasted back, and every hop is manual copy and paste.
Request
A basic text editor inside the Deck, so a draft can be written, edited by the person, and read by the agent in one place without leaving the app.
What good looks like
A person can open a draft in the Deck, edit it as plain text or markdown, and save it.
The agent can read the current saved version and write a revised version to the same file.
Either side can see what changed (at minimum: last saved by whom, when).
The draft is a normal file in the workspace root, so it is versioned, searchable and shared like everything else.
Out of scope for the first slice
Real-time multi-cursor collaboration.
Rich text or Google Docs import and export.
Comments and suggestions.
Open questions
Where do drafts live? A drafts folder in the workspace root is the obvious default.
How does an agent know a draft has changed? Likely the existing file watch, to confirm.
Conflict handling when both sides save: last write wins with a warning, or a simple lock?
Activity
fix(deck): normalise draft line endings, JSON errors in save lock, lo…
docs(spec): record review-fix commit sha (#66)
fix(deck): surface removed drafts, avoid false poll conflict, keep sa…
docs(spec): record second review-fix sha (#66)
fix(deck): guard draft switching, stale responses, confinement and cr…
docs(spec): record third review-fix sha (#66)
fix(deck): typecheck in draft editor test, reword SPEC to pass leak g…
test(deck): fix mock typing in draft editor test (#66)
fix(deck): origin allowlist for draft writes, read-only while switchi…
docs(spec): fourth review round log and REVIEW.md (#66)
fix(deck): non-blocking draft reads, dev app origin allowlist, test e…
docs(spec): fifth review round log (#66)
test(deck): run FIFO tests in a child process with a hard timeout (#66)
docs(spec): sixth review round log (#66)
test(deck): fix errno typing in mkfifo probe (#66)
fix(deck): confine the draft sidecar read and backup; test dev restar…
feat(deck): guard unsaved draft edits against route changes and tab c…
docs(spec): eighth review round log (#66)
fix(deck): refuse hard-linked drafts and bookkeeping names; use exclu…
docs(spec): ninth review round log (#66)
feat(deck): Markdown draft editor over workspace drafts folder (#66) (#…