Skip to content

feat: add dev-only message data inspection button#13142

Merged
EurFelux merged 2 commits intomainfrom
feat/dev-data-structure
Mar 2, 2026
Merged

feat: add dev-only message data inspection button#13142
EurFelux merged 2 commits intomainfrom
feat/dev-data-structure

Conversation

@EurFelux
Copy link
Copy Markdown
Collaborator

@EurFelux EurFelux commented Mar 2, 2026

What this PR does

Before this PR:
No way to inspect raw Message and MessageBlock data structures during development.

After this PR:
A dev-only "Inspect Data" button (🐛 Bug icon) appears in the message menubar, opening a popup that displays formatted JSON of the Message object and its associated MessageBlocks using CodeEditor.

image image

Why we need it and why it was done in this way

This helps developers quickly inspect the internal data structures of messages and blocks during development, which is useful for debugging the block-based message architecture.

The following tradeoffs were made:

The following alternatives were considered:

  • Compile-time __DEV__ flag via Vite define — overkill for a small feature.
  • Browser DevTools / Redux DevTools — less convenient for inspecting a specific message in context.

Breaking changes

None. This feature is invisible in production builds.

Special notes for your reviewer

  • Follows the existing TopView + Popup pattern (same as ObsidianExportPopup, SaveToKnowledgePopup, etc.).
  • Uses the existing CodeEditor component for syntax-highlighted JSON display.

Checklist

Release note

NONE

@EurFelux EurFelux merged commit a775f67 into main Mar 2, 2026
21 checks passed
@EurFelux EurFelux deleted the feat/dev-data-structure branch March 2, 2026 16:55
@kangfenmao kangfenmao mentioned this pull request Mar 3, 2026
4 tasks
DeJeune added a commit that referenced this pull request Mar 4, 2026
### What this PR does

This is a release PR for **Cherry Studio v1.7.23**.

**Changes included:**
- Bump version from 1.7.22 to 1.7.23
- Update release notes with user-facing bug fixes

### Release Notes

<!--LANG:en-->
Cherry Studio 1.7.23 - Bug Fixes

🐛 Bug Fixes
- [Selection] Fix app crash on Windows when closing action window
- [MiniApp] Fix settings state synchronization and region filter
consistency
- [Plugin Browser] Make detail modal text selectable and improve search
experience
- [Tools] Fix approval card not showing for builtin and provider tools

### Included Commits

- fix(Selection): prevent Windows crash when closing transparent action
window (#13177)
- fix(renderer): synchronize miniapp settings state and respect region
filter (#13166)
- fix: improve plugin browser UX with three small fixes (#13153)
- fix: show approval card for builtin and provider tools (#13154)
- fix: support esc to close modal (#13159)
- fix: open external editor in new window instead of reusing existing
one (#13160)
- fix: render directory Select options with optionRender (#13152)
- refactor: replace static pnpm patch with postinstall script for
claude-agent-sdk (#13139)
- feat: add dev-only message data inspection button (#13142)
- docs: add review workflow to CLAUDE.md (#13145)
- chore(deps): upgrade @uiw/codemirror packages to 4.25.7 (#13149)
- fix(ci): skip CI on PR body/title edits, only re-run on base branch
changes (#13150)

### Review Checklist

- [ ] Review generated release notes in `electron-builder.yml`
- [ ] Verify version bump in `package.json`
- [ ] CI passes
- [ ] Merge to trigger release build

### Release note

```release-note
Cherry Studio 1.7.23 - Bug Fixes

🐛 Bug Fixes
- [Selection] Fix app crash on Windows when closing action window
- [MiniApp] Fix settings state synchronization and region filter consistency
- [Plugin Browser] Make detail modal text selectable and improve search experience
- [Tools] Fix approval card not showing for builtin and provider tools
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: suyao <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
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.

3 participants