[PR #1862] [MERGED] Show generation time in message toolbars #5321

Closed
opened 2026-10-22 04:15:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1862
Author: @cha1latte
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @cha1latte

Base: refactor ← Head: refactor


📝 Commits (6)

  • 576d072 Move Discover to homepage
  • c87c575 Refresh PR checks after body fix
  • 7913b88 Address review feedback: discovery homepage surface
  • e5e4bd1 Show generation time in message toolbars
  • cf8a355 Refresh PR checks after body fix
  • 4d99b4d Merge upstream refactor into timer toolbar PR

📊 Changes

2 files changed (+146 additions, -79 deletions)

View changed files

📝 src/features/modes/conversation/components/ConversationMessage.tsx (+97 -72)
📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+49 -7)

📄 Description

Linked issue

Closes #1851

Why this change

Assistant responses already store generation duration metadata, but users had to enable token usage display or infer timing indirectly. This surfaces the existing duration as a small timer affordance in message toolbars.

What changed

  • Added a timer toolbar item for assistant messages when stored generation duration metadata is available.
  • Shows hover text such as Response generated in 1.2s or Response generated in 1m 05s.
  • Reused existing generation metadata sources instead of adding a new timing source.

Refactor impact

Primary owner:

shared mode UI

Impact areas reviewed:

  • Shared message UI
  • Conversation message UI

Boundary notes:

  • No engine, storage, shared API, Rust, schema, or generation pipeline changes.
  • Existing response duration metadata remains the source of truth.

Pressure points touched:

  • Shared mode message toolbar
  • Conversation mode message toolbar

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

Codex validation run from clean worktree C:\tmp\Marinara-Engine-issue-1851:

  • pnpm install --frozen-lockfile
  • pnpm typecheck
  • pnpm check
  • pnpm exec prettier --check src/features/modes/shared/chat-ui/components/ChatMessage.tsx src/features/modes/conversation/components/ConversationMessage.tsx
  • git diff --check

No browser/Tauri visual pass was run.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Minor toolbar metadata surfacing in an existing message UI; no new guide/discovery entry or separate workflow.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

No screenshot captured; change is a small conditional toolbar icon and hover title.

Summary by CodeRabbit

  • New Features

    • Added generation timing indicator to messages, displaying response creation duration via a hover action button.
  • Changes

    • Integrated discovery experience directly into the home page view.
    • Removed standalone "Discover" button from right panel navigation.
    • Redesigned home page by removing the FAQ section and replacing it with a configurable discovery surface.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1862 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/1/2026 **Status:** ✅ Merged **Merged:** 6/1/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `refactor` --- ### 📝 Commits (6) - [`576d072`](https://github.com/Pasta-Devs/Marinara-Engine/commit/576d0729a5509489036b99fc34ef0a8b11abe2d3) Move Discover to homepage - [`c87c575`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c87c575c19813f787b2ca32fc3321e4c559556d9) Refresh PR checks after body fix - [`7913b88`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7913b886519339b4f210b369e5f3dc810db4c6dc) Address review feedback: discovery homepage surface - [`e5e4bd1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e5e4bd125a9507f79b8dc2f6af9c040bf92b4227) Show generation time in message toolbars - [`cf8a355`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cf8a35536c60bd2fda06a679b94d9fa282220bcb) Refresh PR checks after body fix - [`4d99b4d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4d99b4d183a28f9201ac3388e83ff057d70ec207) Merge upstream refactor into timer toolbar PR ### 📊 Changes **2 files changed** (+146 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/conversation/components/ConversationMessage.tsx` (+97 -72) 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+49 -7) </details> ### 📄 Description ## Linked issue Closes #1851 ## Why this change Assistant responses already store generation duration metadata, but users had to enable token usage display or infer timing indirectly. This surfaces the existing duration as a small timer affordance in message toolbars. ## What changed - Added a timer toolbar item for assistant messages when stored generation duration metadata is available. - Shows hover text such as `Response generated in 1.2s` or `Response generated in 1m 05s`. - Reused existing generation metadata sources instead of adding a new timing source. ## Refactor impact Primary owner: shared mode UI Impact areas reviewed: - Shared message UI - Conversation message UI Boundary notes: - No engine, storage, shared API, Rust, schema, or generation pipeline changes. - Existing response duration metadata remains the source of truth. Pressure points touched: - Shared mode message toolbar - Conversation mode message toolbar ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes Codex validation run from clean worktree `C:\tmp\Marinara-Engine-issue-1851`: - `pnpm install --frozen-lockfile` - `pnpm typecheck` - `pnpm check` - `pnpm exec prettier --check src/features/modes/shared/chat-ui/components/ChatMessage.tsx src/features/modes/conversation/components/ConversationMessage.tsx` - `git diff --check` No browser/Tauri visual pass was run. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Minor toolbar metadata surfacing in an existing message UI; no new guide/discovery entry or separate workflow. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence No screenshot captured; change is a small conditional toolbar icon and hover title. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added generation timing indicator to messages, displaying response creation duration via a hover action button. * **Changes** * Integrated discovery experience directly into the home page view. * Removed standalone "Discover" button from right panel navigation. * Redesigned home page by removing the FAQ section and replacing it with a configurable discovery surface. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:14 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5321
No description provided.