You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(bots): expose bounded redacted onboarding retry health #4745
Bot onboarding already retries transient polling failures with bounded consecutive-failure and interval limits, but the renderer projection hides those intermediate failures. A user sees the session remain in waiting or scanned without knowing whether the provider is simply pending or Maka is backing off after a network/rate-limit/server failure.
The raw provider error must not cross the main-process boundary because it may contain credentials, URLs, response bodies, or provider-specific secrets.
Desired outcome
Expose one bounded, redacted onboarding retry-health projection so the settings UI can distinguish an ordinary pending poll from a transient failure that will be retried.
The projection should contain only a stable failure category, the consecutive failure count, and the next retry time/interval needed for user-facing status. It must clear after a successful provider response and stop changing after cancellation, expiry, denial, terminal failure, or session supersession.
Scope
Extend the existing onboarding snapshot/IPC contract with bounded retry-health fields.
Derive the fields from the current main-process poll/backoff owner; do not introduce another retry loop or health authority.
Redact failures before projection using a finite classification rather than forwarding arbitrary error text.
Render concise actionable status in the existing Bot settings onboarding surface.
Add deterministic tests for transient failure, backoff, recovery/clear, terminal failure, cancellation, supersession, and secret-like error content.
Non-goals
Changing retry thresholds, polling intervals, or provider protocol behavior.
Persisting raw provider errors or credentials.
General Bot runtime health, analytics export, OpenTelemetry, or notification delivery.
Provider-specific onboarding redesign.
Verification
Run focused Desktop onboarding main/renderer tests, Core contract tests if the shared snapshot changes, Desktop typecheck, and redaction regressions.
Issue drafted with OpenAI Codex assistance on behalf of @testikun.
I would like to implement this bounded onboarding-health slice. The existing main-process poll loop remains the sole retry owner; the change will project only finite redacted categories, failure count, and retry timing, with deterministic clear/cancel/supersession tests and a concise existing-surface UI state.
Activity
testikun commentedon Sep 4, 2026
/take
I would like to implement this bounded onboarding-health slice. The existing main-process poll loop remains the sole retry owner; the change will project only finite redacted categories, failure count, and retry timing, with deterministic clear/cancel/supersession tests and a concise existing-surface UI state.
中文摘要:我认领这个 Bot onboarding 小切片,只投影有限、脱敏的重试健康状态,不改变重试策略,也不暴露原始 provider 错误。
Claimed with OpenAI Codex assistance on behalf of @testikun.
Astro-Han commentedon Sep 17, 2026
Closing this as an issue for now: the direction has not been confirmed by a maintainer, and the tracker only keeps proposals that already have an agreed scope. Please continue it in GitHub Discussions (https://github.com/apache/maka/discussions); once the shape and acceptance criteria are settled there, open an issue with that scope and it will be picked up.