fix(rectification): surface pricing failures and persist opening question
Independent Staging Quality Gate / validate (push) Successful in 12m42s
Independent Staging Quality Gate / publish (push) Successful in 22m34s

This commit is contained in:
Jesse_Chen
2026-08-31 15:16:23 +08:00
parent 29e331bc0d
commit 47b4b06bfb
10 changed files with 139 additions and 15 deletions
@@ -18,7 +18,6 @@ import {
type RectificationActivityChangedEvent,
type RectificationActivityEvent,
type RectificationChoiceAppliedEvent,
type PublicRectificationActivity,
type PublicRectificationMethod,
type PublicRectificationPhase,
type PublicRectificationTool,
@@ -36,6 +35,7 @@ export type PublicPhaseStreamEvent = Readonly<{
export type PublicErrorCode =
| "billing_denied"
| "billing_unavailable"
| "skill_identity_unverifiable"
| "skill_identity_missing"
| "skill_identity_mismatch"
@@ -284,6 +284,7 @@ export function safePublicEvent(value: unknown): PublicStreamEvent | null {
if (event.type === "error") {
const codes = new Set<PublicErrorCode>([
"billing_denied",
"billing_unavailable",
"skill_identity_unverifiable",
"skill_identity_missing",
"skill_identity_mismatch",