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
fix(tui): expand paste placeholders at submit time (#149)
handle_paste stores large pastes in paste_contents and inserts a
[Pasted ~N lines #K] placeholder, but nothing ever read the store back:
PromptInputState::take() returned the composer text verbatim, so the
model received the literal placeholder instead of the pasted content.
take() now rebuilds each placeholder from its stored content and
expands it before returning; the placeholder format lives in one
helper shared with handle_paste so the two cannot drift. clear()
drops stored contents (placeholders live in text, so once text is
cleared they are unreachable) while paste_counter stays monotonic to
keep stale placeholder ids from colliding after undo.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments