Repository navigation
Conversation
Greptile SummaryThis change adds repeat handling for large pasted text. A reproduced input-editing failure remains: after deleting a generated placeholder and typing the same text literally, repeating the original paste overwrites that user-authored text and discards the saved paste content. Confidence Score: 4/5The multiline paste workflow can overwrite user-authored input and lose the saved paste content. One reproduced non-security functional failure remains in the paste-repeat behavior. Files Needing Attention: crates/jcode-tui/src/tui/app/input.rs
What T-Rex did
|
|
May I fix |
| let rendered_placeholder_count = app.input.match_indices(placeholder.as_str()).count(); | ||
| // Placeholder text can also be typed by the user. If the rendered and | ||
| // stored counts differ, there is no reliable way to identify which | ||
| // occurrence belongs to this paste, so preserve both the input and store. | ||
| if rendered_placeholder_count != stored_placeholder_count { | ||
| return false; |
There was a problem hiding this comment.
Retyped placeholder loses ownership
Deleting a generated paste placeholder and then typing the same placeholder text literally restores the rendered/stored count equality that this guard relies on. Re-pasting the original multiline text then replaces the user-entered literal and removes its stored paste entry. Placeholder ownership needs to be tracked independently of its rendered text, or deletion must invalidate the associated stored placeholder.
Artifacts
Focused Rust test source for literal multiline-paste placeholder replacement
- This authored test drives the initial five-line paste, backspace deletion, literal placeholder typing, and original-text re-paste path, demonstrating the exact behavior under test.
Focused multiline-paste literal replacement test output
- This command output records the executed focused test, its exit code 0, and the before/after input and pasted-content states, confirming the literal was replaced and stored content removed.
Ran code and verified through T-Rex
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/jcode-tui/src/tui/app/input.rs
Line: 830-835
Comment:
**Retyped placeholder loses ownership**
Deleting a generated paste placeholder and then typing the same placeholder text literally restores the rendered/stored count equality that this guard relies on. Re-pasting the original multiline text then replaces the user-entered literal and removes its stored paste entry. Placeholder ownership needs to be tracked independently of its rendered text, or deletion must invalidate the associated stored placeholder.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.|
Closing as superseded by the equivalent fixes already landed on master. I also re-reviewed the remaining paste-repeat delta: Greptile reproduced a case where deleting the generated placeholder and typing the same literal still lets repeat-paste overwrite user-authored text, so this branch is not safe to merge as-is. The focused follow-up should track placeholder identity rather than infer it from rendered text. |
|
Ok
…On Mon, Aug 17, 2026 at 9:21 AM Jeremy Huang ***@***.***> wrote:
*1jehuang* left a comment (1jehuang/jcode#918)
<#918 (comment)>
Closing as superseded by the equivalent fixes already landed on master. I
also re-reviewed the remaining paste-repeat delta: Greptile reproduced a
case where deleting the generated placeholder and typing the same literal
still lets repeat-paste overwrite user-authored text, so this branch is not
safe to merge as-is. The focused follow-up should track placeholder
identity rather than infer it from rendered text.
—
Reply to this email directly, view it on GitHub
<#918?email_source=notifications&email_token=CDEIIN3OW2HTJGKUTX6NJV35KJ6NPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZRGE2TKMJTGM4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5311551338>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CDEIINZITOU2FYW352HKARD5KJ6NPAVCNFSNUABGKJSXA33TNF2G64TZHMYTCMRYGIYDINRRGQ5US43TOVSTWNJRGM3DMNRRHEYTHILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/CDEIIN56M4IBDADYQX3LRGD5KJ6NPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZRGE2TKMJTGM4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/CDEIIN6H72NX6MFLVBLC4YT5KJ6NPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZRGE2TKMJTGM4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you commented.Message ID:
***@***.***>
|
Summary
AGENTS.md, clip skill descriptions safely, and preserve orphaned OpenRouter tool outputsFixes #908
Fixes #910
Fixes #911
Fixes #913
Fixes #914
Fixes #916
Fixes #917
Verification
cargo test -p jcode-build-supportcargo test -p jcode-base promptcargo test -p jcode-provider-openroutercargo test -p jcode --lib server_promote_parses_default_and_explicit_versioncargo check -p jcode-build-support --target x86_64-pc-windows-gnugit diff --check origin/master..HEAD--- — Jcode agent (automated triage), on behalf of @1jehuang