Skip to content

Diagnostics: Copy log, Save… and selection across lines - #163

Merged
Skeyelab merged 2 commits into
mainfrom
copy-162
Nov 16, 2026
Merged

Skeyelab merged 2 commits into
mainfrom
copy-162

Conversation

@Skeyelab

Copy link
Copy Markdown
Member

The MIDI Monitor and OSC log in Diagnostics can now be copied and saved for sharing.

Closes #162

Presentation (test-first)

  • DiagnosticsLines.plainText(tab): the tab's shown lines, oldest first, each ending in a newline, and "" when empty. UNMAPPED keeps its words; the dot is only drawn in the window. On the OSC tab it follows the Progress/Time filter, both on and off. Tested with literal strings.
  • DiagnosticsTab.exportFileName(appName:): for example "DeckBridge OSC Log.txt". The App passes AppInfo.displayName, so the Display name: DeckBridge (hold until the name is reserved) #161 rename carries over (cos's note).

App

  • Buttons: Copy log (⇧⌘C) and Save… (⌘S) sit next to Clear log. Both write that plain text. Save… uses NSSavePanel, which the user-selected read-write entitlement allows.
  • Selection: each tab's list is now one selectable text (an AttributedString, with the UNMAPPED dot and color kept), so a drag or ⌘A selects across lines and ⌘C copies them. The per-row hairlines are gone. I checked the snapshots.
  • 10 Hz refresh: the list redraws at most every 100 ms (cos's note), from a task that runs while the window is open. During playback, OSC lines arrive far faster.
    • The Hide Progress and Time checkbox is now its own stored property, so it doesn't make the window redraw on every new line.
    • Snapshots read the log directly.

Checks

  • After merging main, 373 tests pass and the local Release build succeeded.
  • Not done: a CPU check during playback. It needs the app running with Syndicate, and the user's copy holds the ports. Worth a look in the hardware run (docs/HARDWARE-CHECK.md 10.6).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCgWWsdAAQXJWYmYEXyTy7

Skeyelab and others added 2 commits November 16, 2026 00:13
Each tab gets Copy log (⇧⌘C) and Save… (⌘S), writing the tab's plain text with
its filter. The list is one selectable text, so a drag or ⌘A selects across
lines and ⌘C copies them. It refreshes at most 10 times a second, so OSC
floods during playback don't redraw it per message.

Closes #162

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWsdAAQXJWYmYEXyTy7
@Skeyelab Skeyelab added this to the v1.0: native Mac app milestone Nov 16, 2026
@Skeyelab
Skeyelab enabled auto-merge November 16, 2026 05:14
@Skeyelab
Skeyelab merged commit 113945b into main Nov 16, 2026
3 checks passed
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.

Diagnostics: copy and save the MIDI Monitor and OSC log

1 participant