Skip to content

fix(feishu): report real connection state and diagnostics - #6

Merged
mackt merged 1 commit into
mainfrom
fix/feishu-connection-status
Sep 9, 2026
Merged

mackt merged 1 commit into
mainfrom
fix/feishu-connection-status

Conversation

@mackt

@mackt mackt commented Sep 9, 2026

Copy link
Copy Markdown
Member

Feishu reported a channel as connected as soon as its monitor existed, even when credentials were invalid or the WebSocket had disconnected. Connection failures also lacked diagnostic details.

Use the SDK's actual WebSocket lifecycle to report connection state, preserve authentication and reconnect errors, and clear diagnostics after recovery. Count only connected accounts and use the same state for /feishu status and account listings. Add localized connection states in all six supported languages.

Prepare Feishu 0.2.1, pin the tested Lark SDK to 1.73.3, and run plugin regression tests in CI.

Validation:

  • All 153 tests pass, including real SDK tests for invalid credentials, pending handshakes, disconnect/recovery, multiple accounts, credential updates, and cleanup.
  • Formatting, lint, Feishu typecheck/build, translation validation, and frozen lockfile installation pass.
  • Re-ran the original probes: a real Feishu request with an invalid App ID now reports disconnected with 10014 / app id not exists; a local WebSocket disconnect reports disconnected with nonempty diagnostics.

Derive status from the SDK WebSocket lifecycle instead of monitor presence. Preserve authentication and reconnect failures for channel diagnostics, clear them after recovery, and keep commands consistent with account state.

Pin the tested Lark SDK, prepare Feishu 0.2.1, and run plugin regressions in CI. Verified 153 tests, typecheck, build, translations, and the original invalid-credential and disconnect probes.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-09T08:07:53.472699Z 0dea9e3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mackt
mackt merged commit 1f15bef into main Sep 9, 2026
1 check passed
@mackt
mackt deleted the fix/feishu-connection-status branch September 9, 2026 08:36
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