Skip to content

feat(dexdex): forward tauri dev console logs to terminal#282

Merged
kdy1 merged 2 commits intomainfrom
kdy1/dexdex-dev-console-terminal-logs
Mar 20, 2026
Merged

feat(dexdex): forward tauri dev console logs to terminal#282
kdy1 merged 2 commits intomainfrom
kdy1/dexdex-dev-console-terminal-logs

Conversation

@kdy1
Copy link
Copy Markdown
Contributor

@kdy1 kdy1 commented Mar 20, 2026

Summary

  • forward DexDex WebView console.* logs to terminal output in Tauri development runtime
  • keep production behavior unchanged by enabling the bridge only in development mode with Tauri runtime checks
  • add Tauri log plugin wiring on both Rust host and web client side
  • sync DexDex docs contracts to reflect the new development logging behavior

Changes

  • add @tauri-apps/plugin-log dependency and lockfile updates
  • register tauri_plugin_log::Builder::new().build() in Tauri host runtime
  • add log:default capability permission for DexDex desktop window
  • add initDevConsoleTerminalBridge() in app bootstrap
  • add dev-console-terminal-bridge.ts and tests for level mapping, no-op without Tauri runtime, and idempotent install
  • update DexDex app and project docs:
    • docs/apps-dexdex-desktop-app-foundation.md
    • docs/project-dexdex.md

Validation

  • cd apps/dexdex && pnpm test
  • cargo test (repository root)
  • cd apps/dexdex/src-tauri && cargo test

@kdy1 kdy1 marked this pull request as ready for review March 20, 2026 01:42
@kdy1 kdy1 changed the title dexdex: forward tauri dev console logs to terminal feat(dexdex): forward tauri dev console logs to terminal Mar 20, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5fdf3b84a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/dexdex/src-tauri/src/lib.rs Outdated
@kdy1 kdy1 merged commit 969f414 into main Mar 20, 2026
13 checks passed
@kdy1 kdy1 deleted the kdy1/dexdex-dev-console-terminal-logs branch March 20, 2026 03:27
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.

1 participant