mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6438] [CLOSED] feat(diagnostics): retain bounded logs and traceable error references #7179
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#7179
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/6438
Author: @SirAdoni
Created: 9/20/2026
Status: ❌ Closed
Base:
staging← Head:contrib/e01-diagnostics-current📝 Commits (1)
2668c54feat(diagnostics): retain bounded logs and traceable error references📊 Changes
30 files changed (+2040 additions, -65 deletions)
View changed files
📝
.env.example(+6 -0)📝
CHANGELOG.md(+2 -0)➕
LOGGING.md(+66 -0)➕
e2e/diagnostics.e2e.ts(+79 -0)📝
packages/client/src/lib/api-client.ts(+62 -13)➕
packages/client/src/lib/client-diagnostics.ts(+226 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/client/src/main.tsx(+20 -0)📝
packages/server/src/app.ts(+47 -13)📝
packages/server/src/config/env-watcher.ts(+4 -5)📝
packages/server/src/config/runtime-config.ts(+18 -0)➕
packages/server/src/lib/diagnostic-operation.ts(+36 -0)➕
packages/server/src/lib/diagnostics.ts(+165 -0)📝
packages/server/src/lib/logger.ts(+100 -25)➕
packages/server/src/lib/rotating-sink.ts(+209 -0)📝
packages/server/src/middleware/error-handler.ts(+13 -3)➕
packages/server/src/routes/diagnostics.routes.ts(+88 -0)📝
packages/server/src/routes/generate/sse.ts(+70 -2)📝
packages/server/src/routes/index.ts(+2 -0)➕
packages/server/src/services/llm/diagnostic-provider.ts(+261 -0)...and 10 more files
📄 Description
Linked issue
Refs #6453 (E01 logging scope agreed by the maintainer), originally #6431.
Why this change
Make failures easier to trace through existing Pino logs using bounded local files, correlated request/provider context and reusable error references. This reopens the existing E1 submission after the logging-only scope was agreed in #6453.
What changed
E1 extends the existing logging and error paths. Current work is integrating current staging, reviewing privacy and provider compatibility, and rerunning checks. E02 persistence and generation-after-tab-close behavior are excluded.
Owner: @SirAdoni, with AI assistance. Implementation and verification are in progress; this remains a draft.
Validation
Previous results are not being claimed for the refreshed branch. Updated evidence will be added after verification.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
Focused browser proof will use synthetic data only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.