You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/src
Marcus Castro 45488e4ec9
fix: remap session JSONL chunk line numbers to original source positions (#12102)
* fix: remap session JSONL chunk line numbers to original source positions

buildSessionEntry() flattens JSONL messages into plain text before
chunkMarkdown() assigns line numbers. The stored startLine/endLine
values therefore reference positions in the flattened text, not the
original JSONL file.

- Add lineMap to SessionFileEntry tracking which JSONL line each
  extracted message came from
- Add remapChunkLines() to translate chunk positions back to original
  JSONL lines after chunking
- Guard remap with source === "sessions" to prevent misapplication
- Include lineMap in content hash so existing sessions get re-indexed

Fixes #12044

* memory: dedupe session JSONL parsing

---------

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
10 months ago
..
acp chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
agents fix: resolve message tool lint error (#13453) (thanks @liebertar) 10 months ago
auto-reply fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
browser fix: prevent act:evaluate hangs from getting browser tool stuck/killed (#13498) 10 months ago
canvas-host fix: use STATE_DIR instead of hardcoded ~/.openclaw for identity and canvas (#4824) 10 months ago
channels feat: IRC — add first-class channel support 10 months ago
cli fix: unify session maintenance and cron run pruning (#13083) 10 months ago
commands Update Together default model to together/moonshotai/Kimi-K2.5 (#13324) 10 months ago
compat refactor: rename to openclaw 10 months ago
config feat: IRC — add first-class channel support 10 months ago
cron fix: unify session maintenance and cron run pruning (#13083) 10 months ago
daemon fix(runtime): bump minimum Node.js version to 22.12.0 (#5370) 10 months ago
discord fix(memory/qmd): scope query to managed collections (#11645) 10 months ago
docs Docs: landing page revamp (#8885) 10 months ago
gateway Gateway: eager-init QMD backend on startup 10 months ago
hooks fix: use STATE_DIR instead of hardcoded ~/.openclaw for identity and canvas (#4824) 10 months ago
imessage fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
infra fix: unify session maintenance and cron run pruning (#13083) 10 months ago
line fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
link-understanding chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
logging fix: guard resolveUserPath against undefined input (#10176) 10 months ago
macos chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
markdown chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
media refactor: consolidate PNG encoder and safeParseJson utilities (#12457) 10 months ago
media-understanding refactor: consolidate fetchWithTimeout into shared utility 10 months ago
memory fix: remap session JSONL chunk line numbers to original source positions (#12102) 10 months ago
node-host fix: prevent act:evaluate hangs from getting browser tool stuck/killed (#13498) 10 months ago
pairing refactor: consolidate PNG encoder and safeParseJson utilities (#12457) 10 months ago
plugin-sdk Update contributing, deduplicate more functions 10 months ago
plugins fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
process fix: skip extension append if command already has one 10 months ago
providers chore: Fix failing test. 10 months ago
routing refactor: unify peer kind to ChatType, rename dm to direct (#11881) 10 months ago
scripts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
security refactor(security,config): split oversized files (#13182) 10 months ago
sessions fix: unify session maintenance and cron run pruning (#13083) 10 months ago
shared/text chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
signal fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
slack fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
telegram fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
terminal fix: error handling in restore failure reporting 10 months ago
test-helpers fix: use STATE_DIR instead of hardcoded ~/.openclaw for identity and canvas (#4824) 10 months ago
test-utils chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
tts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
tui Centralize date/time formatting utilities (#11831) 10 months ago
types fix: update pi packages to 0.51.0, remove bogus type augmentation 10 months ago
utils refactor: consolidate fetchWithTimeout into shared utility 10 months ago
web fix(auto-reply): prevent sender spoofing in group prompts 10 months ago
whatsapp chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
wizard feat(onboard): add custom/local API configuration flow (#11106) 10 months ago
channel-web.barrel.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
channel-web.ts
…
docker-setup.test.ts test(docker): make bash 3.2 compatibility check portable 10 months ago
entry.ts Centralize date/time formatting utilities (#11831) 10 months ago
extensionAPI.ts chore: Migrate to tsdown, speed up JS bundling by ~10x (thanks @hyf0). 10 months ago
globals.test.ts
…
globals.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
index.test.ts
…
index.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
logger.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
logger.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
logging.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
polls.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
polls.ts
…
runtime.ts CLI: restore terminal state on exit 10 months ago
utils.test.ts fix(paths): structurally resolve home dir to prevent Windows path bugs (#12125) 10 months ago
utils.ts Deduplicate more 10 months ago
version.test.ts fix: CLI harden update restart imports and fix nested bundle version resolution 10 months ago
version.ts fix: CLI harden update restart imports and fix nested bundle version resolution 10 months ago