Skip to content

chore: v0.34.0 - #145

Merged
fylorn merged 1 commit into
mainfrom
chore/v0.34.0
Sep 23, 2026
Merged

fylorn merged 1 commit into
mainfrom
chore/v0.34.0

Conversation

@fylorn

@fylorn fylorn commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Since v0.33.0: core's own error sentences get their own codes, so the UI can translate them.

  • feat: give core's own error sentences their own codes #143: fourteen wrapper codes whose English template was only "{detail}" are gone. Each error they wrapped now speaks with its own coded Msg (msg() on the error enum, one code per variant; Display is that text). This covers PatchError, RouteError/MatchError, SheetError, CredentialError, StoreError, EditError, ValidationError, PlanError/ForeignError/McpError, RefreshError, ApplyError, route/group/rule validation, the in-use guards and Z.ai account calls. l1.io splits into eleven l1.io.* codes by io::ErrorKind and stays only as the fallback. Text from outside (SQLite, serde, OS, upstream bodies) stays in a detail arg inside a coded sentence. Removed codes: control.adopt_failed, control.bad_credential, control.bad_price_sheet, control.bad_rule, control.config_rejected, control.internal, control.listen.bad_bind, control.mcp_failed, control.mcp_target_unknown, control.pricing_refresh_failed, control.route_failed, control.upstream_call_failed. Breaking for Rust callers: tw_config::Rejected::message is a Box<Msg>; ApplyError carries Msg in Build/BadPath/InUse and gains Invalid; RefreshError, EditError, ValidationError::BadCidr and PlanError changed shape.

CONTROL_API_VERSION is unchanged: the response shape is the same Msg, only the codes inside differ.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 628bb19 into main Sep 23, 2026
2 checks passed
@fylorn
fylorn deleted the chore/v0.34.0 branch September 23, 2026 15:39
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