[PR #1527] [MERGED] [codex] Restore agent activity UI #5118

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1527
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis

Base: refactor ← Head: restore/knip-agent-activity


📝 Commits (3)

  • b09ad7c Restore agent activity UI
  • 21bdea2 Fix conversation agent refresh gating
  • 6cccde8 Respect filtered thought bubble clearing

📊 Changes

5 files changed (+50 additions, -17 deletions)

View changed files

➕ src/features/catalog/agents/activity.ts (+2 -0)
📝 src/features/catalog/agents/components/AgentThoughtBubbles.tsx (+25 -10)
📝 src/features/modes/conversation/components/ChatConversationSurface.tsx (+4 -0)
📝 src/features/modes/conversation/components/ConversationModeRoute.tsx (+13 -6)
📝 src/features/modes/roleplay/components/RoleplayHUDActionsMenu.tsx (+6 -1)

📄 Description

Linked issue

Refs #1496

Why this change

  • Restores and properly wires the orphaned agent activity UI slice identified during the Knip triage, without closing the broader issue because additional orphaned files remain.

What changed

  • Added a catalog agents activity public entrypoint for the restored components.
  • Wired AgentThoughtBubbles into conversation mode so active agent work can surface during chat generation.
  • Reused ContinuityIssueChecklist for continuity bubbles in conversation and roleplay agent activity surfaces.
  • Fixed filtered thought-bubble dismissal to dismiss the original store entry instead of the filtered-array index.
  • Aligned conversation agent gating so explicit activeAgentIds also keep timeline world-state refresh active for tracker-agent paths.

Refactor impact

Primary owner:

catalog agents UI, conversation mode UI, roleplay mode HUD activity

Impact areas reviewed:

  • Catalog agent component public entrypoint and private component imports
  • Conversation mode agent thought bubble rendering and timeline refresh gating
  • Roleplay HUD activity rendering for continuity bubbles
  • Shared chat timeline action gating for tracker refresh
  • Architecture dependency direction between modes and catalog

Boundary notes:

  • Feature-layer UI only; no engine, shared API, Rust, storage, or remote-runtime boundary changes.
  • Conversation and roleplay remain separate mode owners; shared restored UI is imported through the catalog agents public activity entrypoint.
  • No raw Tauri invoke or remote-runtime fetch added.

Pressure points touched:

  • Shared mode UI is only consumed through existing conversation surface and timeline hooks.
  • Did not touch ModeSurface, GameSurface, src-tauri/src/lib.rs, or import modules.

Validation

  • pnpm check passes locally
  • 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
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • pnpm typecheck passed locally.
  • pnpm lint:eslint passed locally.
  • pnpm check:architecture passed locally.
  • pnpm build passed locally; Vite still reports the existing large-chunk warning.
  • pnpm exec knip --reporter compact --no-exit-code --no-config-hints reports 11 unused files remaining, down from the previous 13-file slice target.
  • git diff --check origin/refactor...HEAD passed.
  • No Tauri/manual UI pass was run in this slice.

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

No docs or release files were changed; this restores existing UI wiring and does not change public commands, architecture guidance, or release packaging claims.

UI evidence

Not added; no browser, screenshot, recording, or native Tauri UI pass was run.

Summary by CodeRabbit

  • New Features
    • Agent thought bubbles now display continuity issues in a dedicated checklist format
    • Enhanced filtering and enabling logic for agent visibility in conversations
    • Added support for selective agent type configuration in the conversation surface

Review Change Stack


🔄 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/1527 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `restore/knip-agent-activity` --- ### 📝 Commits (3) - [`b09ad7c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b09ad7c389b186e58f72da648244a03f22b2352e) Restore agent activity UI - [`21bdea2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21bdea268233449c686fb4c0883b977b95edb235) Fix conversation agent refresh gating - [`6cccde8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6cccde884632581ad85098c7b445ebf360eaed30) Respect filtered thought bubble clearing ### 📊 Changes **5 files changed** (+50 additions, -17 deletions) <details> <summary>View changed files</summary> ➕ `src/features/catalog/agents/activity.ts` (+2 -0) 📝 `src/features/catalog/agents/components/AgentThoughtBubbles.tsx` (+25 -10) 📝 `src/features/modes/conversation/components/ChatConversationSurface.tsx` (+4 -0) 📝 `src/features/modes/conversation/components/ConversationModeRoute.tsx` (+13 -6) 📝 `src/features/modes/roleplay/components/RoleplayHUDActionsMenu.tsx` (+6 -1) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Refs #1496 ## Why this change - Restores and properly wires the orphaned agent activity UI slice identified during the Knip triage, without closing the broader issue because additional orphaned files remain. ## What changed - Added a catalog agents activity public entrypoint for the restored components. - Wired `AgentThoughtBubbles` into conversation mode so active agent work can surface during chat generation. - Reused `ContinuityIssueChecklist` for continuity bubbles in conversation and roleplay agent activity surfaces. - Fixed filtered thought-bubble dismissal to dismiss the original store entry instead of the filtered-array index. - Aligned conversation agent gating so explicit `activeAgentIds` also keep timeline world-state refresh active for tracker-agent paths. ## Refactor impact Primary owner: catalog agents UI, conversation mode UI, roleplay mode HUD activity Impact areas reviewed: - Catalog agent component public entrypoint and private component imports - Conversation mode agent thought bubble rendering and timeline refresh gating - Roleplay HUD activity rendering for continuity bubbles - Shared chat timeline action gating for tracker refresh - Architecture dependency direction between modes and catalog Boundary notes: - Feature-layer UI only; no engine, shared API, Rust, storage, or remote-runtime boundary changes. - Conversation and roleplay remain separate mode owners; shared restored UI is imported through the catalog agents public activity entrypoint. - No raw Tauri invoke or remote-runtime fetch added. Pressure points touched: - Shared mode UI is only consumed through existing conversation surface and timeline hooks. - Did not touch `ModeSurface`, `GameSurface`, `src-tauri/src/lib.rs`, or import modules. ## Validation - [ ] `pnpm check` passes locally - [ ] `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 - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `pnpm typecheck` passed locally. - `pnpm lint:eslint` passed locally. - `pnpm check:architecture` passed locally. - `pnpm build` passed locally; Vite still reports the existing large-chunk warning. - `pnpm exec knip --reporter compact --no-exit-code --no-config-hints` reports 11 unused files remaining, down from the previous 13-file slice target. - `git diff --check origin/refactor...HEAD` passed. - No Tauri/manual UI pass was run in this slice. ## 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 No docs or release files were changed; this restores existing UI wiring and does not change public commands, architecture guidance, or release packaging claims. ## UI evidence Not added; no browser, screenshot, recording, or native Tauri UI pass was run. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Agent thought bubbles now display continuity issues in a dedicated checklist format * Enhanced filtering and enabling logic for agent visibility in conversations * Added support for selective agent type configuration in the conversation surface <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1527?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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:13:28 +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#5118
No description provided.