adds Clean Copy Support
This commit is contained in:
@@ -171,6 +171,16 @@ The top pane of the fourth column.
|
||||
- The pane shows the live agent session and has an input line at the bottom.
|
||||
- It receives the **Pass on to Agent** inserts from the editor: text arrives in the input as content, never as a submitted command, so the user can stack several and send when ready.
|
||||
- It is one terminal only. There are no additional agent sessions in this version.
|
||||
- Both terminals run with `TERM_PROGRAM=Helder` in their environment, so the agent can tell it runs inside Helder.
|
||||
|
||||
### Clean copy
|
||||
|
||||
The agent hands the user text to copy through one file, `.clean-copy` in the project root. The agent overwrites the file each time; Helder only reads it and never clears or deletes it.
|
||||
|
||||
- When the file's contents change while the project is open, Helder reads it after a short pause (writes are not atomic) and opens the **From Claude** popup, a card like the note. The contents found when the project opens are the baseline and never open the popup. An empty or blank file, or the same text as last seen, opens nothing.
|
||||
- The popup holds an editable text area. **Copy** (or `Cmd+Enter`) copies the text, with the user's edits, to the clipboard as plain text, closes the popup and shows the "Copied" toast. `Esc` or a click outside closes it without copying.
|
||||
- With another overlay open, the newest text waits and opens once that overlay closes. New text while the popup is open replaces its text only when the user has not edited it.
|
||||
- The popup opens in the project's own window even when that window is in the background; Helder does not take focus.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user