Skip to content

fix: localize concise runtime failure notifications - #321

Merged
Pigbibi merged 1 commit into
mainfrom
fix/notification-i18n-20260908
Sep 8, 2026
Merged

fix: localize concise runtime failure notifications#321
Pigbibi merged 1 commit into
mainfrom
fix/notification-i18n-20260908

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Chinese locale variants could fall back to English, and startup failure notifications contained deployment details or long provider errors. Runtime failures now use a five-line localized summary with the strategy name, relevant platform context, outcome, and next action.

Reuse the existing QPK locale normalizer and each platform's translation catalog. Preserve HTTP status, execution-report fields, account routing, delivery behavior, and all trading/risk gates. Fallback logs use stable reason codes without provider exception bodies.

Validation: 56 tests across notification and request-handling tests passed; Ruff passed. Full protected CI remains required before merge. No live execution endpoint was invoked.

Firstrade keeps the existing notification_attempted response meaning, and logs a localized delivery failure when the sender returns false.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 40816a4 into main Sep 8, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/notification-i18n-20260908 branch September 8, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant