mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1587] [MERGED] Restore practical Knip helper wiring #5127
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1587
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis
Base:
refactor← Head:restore/knip-command-help-slice📝 Commits (9)
0f5645bRestore help label helper and narrow exports8d2adb2Restore UI store constants in callers7dd4ea8Restore TTS config schema boundary38b76fcRestore agent retry failure toast formatting82b339aRestore tracker temperature unit optionsf38178eHarden TTS config read normalization4432a1bReject malformed TTS config responsesc3df033Merge remote-tracking branch 'origin/refactor' into restore/knip-command-help-slicef16ba5bBump UI store migration version📊 Changes
15 files changed (+238 additions, -114 deletions)
View changed files
📝
src/engine/contracts/types/tts.ts(+5 -7)📝
src/features/runtime/generation/hooks/use-generate.ts(+17 -16)📝
src/features/runtime/tracker/components/TrackerSidebarHeader.tsx(+7 -4)📝
src/features/shell/settings/components/SettingsPanel.tsx(+62 -35)📝
src/features/shell/settings/components/settings/TTSConfigCard.tsx(+6 -3)📝
src/shared/api/integration-utility-api.ts(+0 -1)📝
src/shared/api/tts-api.test.ts(+51 -2)📝
src/shared/api/tts-api.ts(+28 -3)📝
src/shared/hooks/use-tts.ts(+1 -6)➕
src/shared/lib/agent-failures.test.ts(+30 -0)📝
src/shared/lib/slash-commands.ts(+10 -10)📝
src/shared/lib/tts-service.ts(+1 -1)📝
src/shared/stores/ui.store.ts(+2 -11)📝
src/shared/stores/ui/model.ts(+13 -14)📝
src/shared/stores/ui/persistence.ts(+5 -1)📄 Description
Linked issue
Refs #1566
Why this change
This is another restore-first slice for the remaining full Knip follow-up queue. The branch restores practical helper/schema usage where the behavior already exists, and narrows exports only where the code is private to its owner.
What changed
LabelWithHelpusage in the TTS config card and kept TTS API-key masking imported from the engine contract owner.ttsConfigSchema, with read-side per-field recovery for malformed persisted fields and strict rejection of malformed native response shapes.Refactor impact
Primary owner:
Shared API, shared UI/store helpers, shell settings, runtime generation, and tracker UI.
Impact areas reviewed:
Boundary notes:
src/engine/contracts/types/tts.ts.src/shared/api/tts-api.tsremains the Tauri command boundary for TTS config, voices, and speak calls.Pressure points touched:
ModeSurface,GameSurface, shared mode UI,src-tauri/src/lib.rs, import modules) were edited.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Automated/local validation run on this branch:
pnpm test -- src/shared/api/tts-api.test.tspnpm test -- src/shared/lib/agent-failures.test.tspnpm test -- src/shared/lib/agent-failures.test.ts src/features/runtime/generation/hooks/use-generate.test.ts src/shared/api/tts-api.test.tspnpm typecheckpnpm lint:eslintpnpm check:architecturepnpm check:unusedpnpm buildgit diff --checkManual/native QA not performed:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or changelog files were changed. There is no
CHANGELOG.mdin this checkout, and this slice does not change documented run commands, architecture, or contributor workflow.UI evidence
No screenshots or recordings added. The visible controls are existing settings/tracker/TTS surfaces with helper/contract wiring restored behind them.
Summary by CodeRabbit
Bug Fixes
Refactor
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.