mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1719] [MERGED] Fix eager TTS and regex reads #5231
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#5231
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/1719
Author: @Promansis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Promansis
Base:
refactor← Head:fix/issue-1715-eager-tts-regex-reads📝 Commits (1)
d36dce5Fix eager TTS and regex reads📊 Changes
4 files changed (+111 additions, -2 deletions)
View changed files
📝
src/features/catalog/agents/hooks/use-regex-scripts.ts(+3 -0)📝
src/features/modes/shared/chat-ui/components/ChatMessage.tsx(+2 -2)➕
src/shared/hooks/use-tts.test.tsx(+98 -0)📝
src/shared/hooks/use-tts.ts(+8 -0)📄 Description
Linked issue
Closes #1715
Why this change
tts_configreads from passive message render consumers, and regex script reads were refetching more aggressively than needed.What changed
Refactor impact
Primary owner:
shared mode UI, shared hooks, catalog agents
Impact areas reviewed:
Boundary notes:
src/shared/api/tts-api.ts.storageApi.Pressure points touched:
src/features/modes/shared/chat-ui/components/ChatMessage.tsxsrc/shared/hooks/use-tts.tssrc/features/catalog/agents/hooks/use-regex-scripts.tsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
git diff --check upstream/refactor...HEAD: no whitespace errors.pnpm exec vitest run src/shared/hooks/use-tts.test.tsx src/features/catalog/agents/regex-application.test.tsx src/features/modes/shared/chat-ui/components/ChatMessage.test.ts: 3 test files passed, 9 tests passed.pnpm typecheck: passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
No screenshots or recordings; this changes query ownership and caching behavior without a visible UI redesign.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.