Repository navigation
Keep the source link whole when a long answer is clipped - #38
Merged
aryanorastar merged 1 commit intoOct 11, 2026
Merged
aryanorastar merged 1 commit into
aryanorastar merged 1 commit into
Conversation
presentReviewedAnswer clipped the whole reply at 1900 characters. The source line is the last line, so a long answer lost it, or kept it cut in the middle of the URL: a link that opens nothing. The body is now clipped and the source line is put back whole, in any of the supported source labels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Customer problem
A long answer loses its source link.
presentReviewedAnswerclips the whole reply at 1900 characters and the source line is the last line, so a 1935 character answer ends inSource: https://help.omi.me/en/articles…, a link that opens nothing, and a longer one has no source line at all.Change
The body is clipped and the closing source line is put back whole, with the shared source labels from
supportSteps.jsso "Fuente:" and the others are kept too. An answer with no source line, or one that fits, is handled as before.addUnsyncedDataWarningalready protects the source line this way for the data-loss warning.Evidence
AGENTS.md, path 1: a how-to answer comes with the link. The clip only runs on the longest answers, which are the step-by-step ones that most need it.
Verification
test/answerPipeline.test.js. The first fails on main; the second keeps short answers and unsourced long answers as they werenpm test: 628/628EVAL_NO_MODEL=1 node scripts/customer-eval.js: 8/8.env, orrailway.toml