[PR #7395] [MERGED] Add a setting to hide the "older messages not sent" note #7714

Closed
opened 2026-10-24 04:06:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7395
Author: @ylli-selmani
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/10/2026
Merged by: @ylli-selmani

Base: staging ← Head: feat/reply-checkup-line-toggle


📝 Commits (4)

  • f27552a Add a setting to quiet the "older messages not sent" note
  • 7f2c87b Document the "older messages not sent" toggle in Settings overview
  • 98d2ce6 Keep the omnibar Check row working when the trim note is hidden
  • 791a6a5 Shorten the trim-note help text and changelog entry

📊 Changes

11 files changed (+113 additions, -8 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/settings/settings-overview.md (+2 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+4 -1)
📝 packages/client/src/components/chat/ReplyCheckup.tsx (+13 -3)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+9 -0)
📝 packages/client/src/lib/omnibar-settings-toggle-bindings.ts (+4 -0)
📝 packages/client/src/lib/reply-checkup.ts (+28 -3)
📝 packages/client/src/lib/settings-registry.ts (+8 -0)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/client/src/stores/ui.store.ts (+7 -0)
📝 scripts/regressions/reply-checkup.regression.ts (+35 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7392

Why this change

  • A very long chat shows a line under every reply: "1109 older messages not sent · Check". It is accurate — the prompt budget left older messages out — but once a chat outgrows the model's context window it appears on nearly every generation, and there is no setting to quiet it.
  • The reporter already manages her long chat with summaries, memories and lorebooks, so the note tells her nothing she did not already know, and another user confirmed no setting existed for it.
  • Note for the issue thread: summarization and lorebooks are not the cause. The cause is the prompt budget dropping history, which happens on every generation past the context window — hence "constant".

What changed

  • Added Settings › Advanced › Message Tools › Show "older messages not sent" note, a global display preference, defaulting to on so no existing install changes behaviour.

  • The line is one component serving four findings; the setting gates only history_trimmed:

    Finding Line text With the setting off
    history_trimmed "1109 older messages not sent" hidden
    cut_off "Cut off" still shows
    empty_reply "Empty reply" still shows
    reply_budget_cut "Reply limit cut to N tokens" still shows

    That split is deliberate: a steady "your chat is long" notice is noise, but a reply that was cut off or came back empty is news the reader wants.

  • Opening Check still lists every finding including the trim, so the numbers stay reachable when a reply actually looks wrong. With the note hidden, nothing shows under the reply, but the Ctrl+K Fix: Check the last reply row still opens the checkup there, with Check to close it again.

  • Files: lib/reply-checkup.ts (replyLineFindings() takes { showHistoryTrimNotice }; omitting it keeps today's behaviour, so the omnibar Fix row and Professor Mari are unchanged), components/chat/ChatArea.tsx, stores/ui.store.ts (field, setter, both persistence pickers, default true), panels/SettingsPanel.tsx, lib/settings-registry.ts + lib/omnibar-settings-toggle-bindings.ts (searchable and flippable from the omnibar, since "I can't find a setting for it" was half the report), localization/locales/en.json, CHANGELOG.md, scripts/regressions/reply-checkup.regression.ts.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • pnpm check (tsc + eslint + localization + format + build) passes.
  • node scripts/run-regressions.mjs --filter reply-checkup passes, and was confirmed to fail when the new condition is inverted, so the proof is not vacuous.
  • A 1000-message chat is not needed to test this: the line is driven by extra.generationInfo.contextFit saved on the newest message, so one message was seeded with { trimmed: true, droppedHistory: 1109, tokensBefore: 9800, inputBudget: 8000 } to reproduce the reporter's exact screenshot in the real dev UI (port 6971, worktree build).
  • Verified in the browser: line visible by default → omnibar search finds the setting → turning it off hides the line → Check still lists "1109 older messages not sent · Needed 9.800 tokens, budget 8.000" → the value persists in storage across a reload, and the line stays hidden after it.
  • After the GitHub CodeRabbit finding: with the setting off and the trim as the only finding, Ctrl+K Fix: Check the last reply now opens the checkup under the reply, and Check closes it again. Before the fix, that row did nothing. Covered by replyLineLead cases in the regression.
  • Not yet checked: light mode, phone-width viewport, and the Docker/Podman container. Left unticked above.
  • Local CodeRabbit review: one finding, dismissed. It asked for settings.controls.* keys in the registry instead of English text; every control in that registry uses canonical English paired with localize(), which reverse-resolves through findEnglishMessageKey(). The registry label was verified byte-identical to the en.json value, so it resolves — a false positive.
  • Second local CodeRabbit run, after the fix: the help text and changelog entry were shortened as suggested; the registry-label finding came back and is dismissed for the same reason.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)
  • No version bump.

UI evidence (if applicable)

  1. The reported line under a reply (1109 older messages not sent · Check).
    01-before-line-visible

  2. The new toggle in Settings › Advanced › Message Tools.

  3. Omnibar search finding the setting.
    03-search-finds-setting

  4. The line gone with the setting off.
    04-after-line-hidden

  5. The Check panel still listing the finding with the setting off.
    05-check-panel-lists-finding

  6. The setting surviving a reload.
    06-after-reload-line-still-there

Summary by CodeRabbit

  • New Features
    • Added Show “older messages not sent” note under Settings → Advanced → Message Tools. It’s on by default and controls whether a note appears when older chat messages were left out of a reply’s context.
  • Improvements
    • Turning off the note does not hide notices for cut-off or empty replies. Check the last reply in Search remains available when the older-messages note is hidden.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7395 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 10/10/2026 **Status:** ✅ Merged **Merged:** 10/10/2026 **Merged by:** [@ylli-selmani](https://github.com/ylli-selmani) **Base:** `staging` ← **Head:** `feat/reply-checkup-line-toggle` --- ### 📝 Commits (4) - [`f27552a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f27552a8bbc46cbf46d60c680e8e678e787ff347) Add a setting to quiet the "older messages not sent" note - [`7f2c87b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7f2c87b6ae38270d389961bb28f963569b2e8f15) Document the "older messages not sent" toggle in Settings overview - [`98d2ce6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/98d2ce6e365e91f631d9a7fa8c65081baa875621) Keep the omnibar Check row working when the trim note is hidden - [`791a6a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/791a6a51106c6b109ca2f9df2fc8d1a9f3611be3) Shorten the trim-note help text and changelog entry ### 📊 Changes **11 files changed** (+113 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/settings/settings-overview.md` (+2 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+4 -1) 📝 `packages/client/src/components/chat/ReplyCheckup.tsx` (+13 -3) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+9 -0) 📝 `packages/client/src/lib/omnibar-settings-toggle-bindings.ts` (+4 -0) 📝 `packages/client/src/lib/reply-checkup.ts` (+28 -3) 📝 `packages/client/src/lib/settings-registry.ts` (+8 -0) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/client/src/stores/ui.store.ts` (+7 -0) 📝 `scripts/regressions/reply-checkup.regression.ts` (+35 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7392 ## Why this change - A very long chat shows a line under every reply: **"1109 older messages not sent · Check"**. It is accurate — the prompt budget left older messages out — but once a chat outgrows the model's context window it appears on nearly every generation, and there is no setting to quiet it. - The reporter already manages her long chat with summaries, memories and lorebooks, so the note tells her nothing she did not already know, and another user confirmed no setting existed for it. - Note for the issue thread: summarization and lorebooks are **not** the cause. The cause is the prompt budget dropping history, which happens on every generation past the context window — hence "constant". ## What changed - Added **Settings › Advanced › Message Tools › Show "older messages not sent" note**, a global display preference, defaulting to **on** so no existing install changes behaviour. - The line is one component serving four findings; the setting gates **only** `history_trimmed`: | Finding | Line text | With the setting off | | --- | --- | --- | | `history_trimmed` | "1109 older messages not sent" | hidden | | `cut_off` | "Cut off" | still shows | | `empty_reply` | "Empty reply" | still shows | | `reply_budget_cut` | "Reply limit cut to N tokens" | still shows | That split is deliberate: a steady "your chat is long" notice is noise, but a reply that was cut off or came back empty is news the reader wants. - Opening **Check** still lists every finding including the trim, so the numbers stay reachable when a reply actually looks wrong. With the note hidden, nothing shows under the reply, but the Ctrl+K **Fix: Check the last reply** row still opens the checkup there, with **Check** to close it again. - Files: `lib/reply-checkup.ts` (`replyLineFindings()` takes `{ showHistoryTrimNotice }`; omitting it keeps today's behaviour, so the omnibar Fix row and Professor Mari are unchanged), `components/chat/ChatArea.tsx`, `stores/ui.store.ts` (field, setter, both persistence pickers, default `true`), `panels/SettingsPanel.tsx`, `lib/settings-registry.ts` + `lib/omnibar-settings-toggle-bindings.ts` (searchable and flippable from the omnibar, since "I can't find a setting for it" was half the report), `localization/locales/en.json`, `CHANGELOG.md`, `scripts/regressions/reply-checkup.regression.ts`. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - `pnpm check` (tsc + eslint + localization + format + build) passes. - `node scripts/run-regressions.mjs --filter reply-checkup` passes, and was confirmed to **fail** when the new condition is inverted, so the proof is not vacuous. - A 1000-message chat is not needed to test this: the line is driven by `extra.generationInfo.contextFit` saved on the newest message, so one message was seeded with `{ trimmed: true, droppedHistory: 1109, tokensBefore: 9800, inputBudget: 8000 }` to reproduce the reporter's exact screenshot in the real dev UI (port 6971, worktree build). - Verified in the browser: line visible by default → omnibar search finds the setting → turning it off hides the line → **Check** still lists "1109 older messages not sent · Needed 9.800 tokens, budget 8.000" → the value persists in storage across a reload, and the line stays hidden after it. - After the GitHub CodeRabbit finding: with the setting off and the trim as the only finding, Ctrl+K **Fix: Check the last reply** now opens the checkup under the reply, and **Check** closes it again. Before the fix, that row did nothing. Covered by `replyLineLead` cases in the regression. - Not yet checked: light mode, phone-width viewport, and the Docker/Podman container. Left unticked above. - Local CodeRabbit review: one finding, dismissed. It asked for `settings.controls.*` keys in the registry instead of English text; every control in that registry uses canonical English paired with `localize()`, which reverse-resolves through `findEnglishMessageKey()`. The registry label was verified byte-identical to the `en.json` value, so it resolves — a false positive. - Second local CodeRabbit run, after the fix: the help text and changelog entry were shortened as suggested; the registry-label finding came back and is dismissed for the same reason. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [x] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) - [ ] No version bump. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> 1. The reported line under a reply (`1109 older messages not sent · Check`). <img width="1733" height="968" alt="01-before-line-visible" src="https://github.com/user-attachments/assets/5e3ae5ed-5201-4274-9a83-613cd02bfd4f" /> 2. The new toggle in Settings › Advanced › Message Tools. 3. Omnibar search finding the setting. <img width="1733" height="968" alt="03-search-finds-setting" src="https://github.com/user-attachments/assets/b9bf4629-7e77-4c34-ab44-ce9a9eaac250" /> 4. The line gone with the setting off. <img width="1733" height="968" alt="04-after-line-hidden" src="https://github.com/user-attachments/assets/36eb1417-6214-4327-bc7b-d90c09007102" /> 5. The **Check** panel still listing the finding with the setting off. <img width="1733" height="968" alt="05-check-panel-lists-finding" src="https://github.com/user-attachments/assets/3bfdc292-43c1-401f-aa07-7a1ce6bc0a99" /> 6. The setting surviving a reload. <img width="1733" height="968" alt="06-after-reload-line-still-there" src="https://github.com/user-attachments/assets/87dcdf42-832d-4a7c-8736-01c729b1e411" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added **Show “older messages not sent” note** under **Settings → Advanced → Message Tools**. It’s on by default and controls whether a note appears when older chat messages were left out of a reply’s context. * **Improvements** * Turning off the note does not hide notices for cut-off or empty replies. **Check the last reply** in Search remains available when the older-messages note is hidden. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:06:47 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7714
No description provided.