Skip to content

fix: add paste collapse logging to aid debugging#26516

Closed
LifeJiggy wants to merge 1 commit into
NousResearch:mainfrom
LifeJiggy:fix/paste-collapse-logging
Closed

fix: add paste collapse logging to aid debugging#26516
LifeJiggy wants to merge 1 commit into
NousResearch:mainfrom
LifeJiggy:fix/paste-collapse-logging

Conversation

@LifeJiggy

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds 2 lines of logger.info — one in handle_paste (bracketed paste path) and one in _on_text_changed (fallback heuristic path) — that log the paste ID, line count, character count, and file path whenever a large paste is collapsed to a file reference. This is purely a diagnostic aid: it does not fix the underlying paste-drop issue, but it gives operators a way to correlate missing-content reports with specific paste files in the log.

Changes Made:

  • cli.py:12093 — Added logger.info("Collapsed paste #%d: %d lines, %d chars -> %s", ...) after bracketed-paste file write
  • cli.py:12260 — Added logger.info("... (fallback)", ...) after text-change-heuristic file write

How to Test:
Paste 10+ lines of text in the CLI. Check the log for "Collapsed paste #1: 11 lines, 500 chars -> ~/.hermes/pastes/paste_1_*.txt". Delete the paste file, then send the message. The placeholder remains and a warning log fires.

Adds logger.info when large pastes are collapsed to file
references in both paste-code paths (handle_paste and
_on_text_changed). Logs paste ID, line count, character
count, and file path so operators can correlate missing-
content reports with specific paste files. This is a
diagnostic aid, not a fix for the paste-drop issue.
@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have labels May 15, 2026
teknium1 added a commit that referenced this pull request May 17, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR #26661, #25576)
- @ether-btc (PR #26632)
- @LifeJiggy (PR #26516)
- @nekwo (PR #26481)
- @flooryyyy (PR #26374)
- @dgians (PR #26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR #27030)
- @hermesagent26 (PR #26438)
- @kriscolab (PR #26926, co-author on salvage commit)
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #27292 — your commit was cherry-picked onto current main as part of a batch salvage of low-risk new-contributor PRs. Authorship preserved (fix: add paste collapse logging to aid debugging). Thanks for the contribution.

@teknium1 teknium1 closed this May 17, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR NousResearch#26661, NousResearch#25576)
- @ether-btc (PR NousResearch#26632)
- @LifeJiggy (PR NousResearch#26516)
- @nekwo (PR NousResearch#26481)
- @flooryyyy (PR NousResearch#26374)
- @dgians (PR NousResearch#26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR NousResearch#27030)
- @hermesagent26 (PR NousResearch#26438)
- @kriscolab (PR NousResearch#26926, co-author on salvage commit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants