Skip to content

Issue #10: log size cap, and clipboardSync Off - #11

Merged
oyvhvi merged 1 commit into
mainfrom
issue-10
Oct 26, 2026
Merged

oyvhvi merged 1 commit into
mainfrom
issue-10

Conversation

@oyvhvi

@oyvhvi oyvhvi commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Closes #10. Only what that issue asked for, ported onto main from edge without edge's other work.

Log size cap (root settings)

  • logMaxSize: default 10 MiB; 0 or null turns the cap off.
  • logHistory: default 1. A full log moves to hydra.log.1 and older ones shift up. Lowering it deletes the rolled logs numbered past it.
  • logTrimPercent: default 50. With logHistory at 0, it sets how much of a full log is trimmed off its start, in place.
  • Covers logFile and sessionLogFile, including the Windows service's own log. Invalid values are refused at startup as a config error.
  • Uses Cathedral 0.0.493.

"clipboardSync": "Off" (per profile)

  • No clipboard sync and no file transfer with any peer, in either direction, whether set on the master or the slave. Hydra never reads or writes the clipboard while it is off.
  • A slave announces it in its screen info, and its master then sends it nothing and takes nothing from it. A master that predates this is still refused by the slave.
  • The file transfer hotkeys show "File transfer is off".
  • The web config gains a clipboard select (Hydra, System, Off) and the log fields. The TUI offers Off.

Verification

  • Lint is clean.
  • Tests pass on mac (2039), linux (22) and windows (2021).
  • HydraWebConfig: 183 tests pass, plus tsc and eslint.
  • A review agent accepted it.

🤖 Generated with Claude Code

…clipboard and files home

Cathedral 0.0.493. logMaxSize (default 10 MiB; 0 or null never cuts), logHistory (default 1) and logTrimPercent
(default 50, used with no history) cap logFile and sessionLogFile, the Windows service's own log included, through
HydraConfigFile.ConfigureFileLog; Parse refuses what the file logger would. A lowered logHistory deletes the rolled
logs numbered past it.

clipboardSync "Off" turns off clipboard sync and file transfer with every peer, both ways, on a master or a slave.
Hydra registers NullClipboardSync; a slave says so in ScreenInfoMessage.SharingOff and its master sends it neither
and takes neither from it; it refuses what a master unaware of the flag sends anyway, answering what that master
waits on (a pull unchanged, a file request aborted, a stream's target told too). The file transfer hotkeys show
"File transfer is off". HydraWebConfig offers clipboardSync (Hydra, System, Off) and the log fields; the TUI offers Off.
@oyvhvi
oyvhvi merged commit d0dbd05 into main Oct 26, 2026
15 checks passed
oyvhvi added a commit that referenced this pull request Oct 26, 2026
@oyvhvi
oyvhvi deleted the issue-10 branch October 27, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is there a way to limit log file?

1 participant