Skip to content

fix: Admin API health check, Slack streaming errors, App Home graceful degradation#6

Open
aaronwong1989 wants to merge 2 commits into
mainfrom
fix/335-337-admin-api-slack-streaming
Open

fix: Admin API health check, Slack streaming errors, App Home graceful degradation#6
aaronwong1989 wants to merge 2 commits into
mainfrom
fix/335-337-admin-api-slack-streaming

Conversation

@aaronwong1989
Copy link
Copy Markdown
Owner

Summary

Fixes 3 independent bugs:

Changes

  • chatapps/slack/apphome/handler.goisAppHomeNotEnabled() + graceful handling
  • chatapps/slack/messages.go — Conditional WARN/ERROR in AppendStream
  • cmd/hotplexd/cmd/doctor.gocheckAdminAPIHealth() HTTP health check

Test plan

  • go build ./... passes
  • go test ./... all pass
  • golangci-lint passes

Resolves hrygo#335
Resolves hrygo#336
Resolves hrygo#337

🤖 Generated with Claude Code

HotPlexBot and others added 2 commits March 22, 2026 14:31
…go#337)

When PublishViewContext returns "not_enabled" (App Home feature not
enabled in Slack App config), log at INFO level and return nil
instead of ERROR. Applies to both HandleHomeOpened and
HandleHomeRefresh.

fix(chatapps): downgrade AppendStream ERROR to WARN for recoverable stream state (Refs hrygo#336)

message_not_in_streaming_state is a recoverable condition handled
by the streaming writer's fallback mechanism. Downgrade from ERROR
to WARN to avoid alarming operators while preserving diagnostics.

fix(cmd): replace admin port check with HTTP health check in doctor (Refs hrygo#335)

Replace netcat-based port availability check with actual HTTP
request to /admin/v1/health. This properly detects whether the
Admin API is responding, not just whether the port is open.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use defer func() { _ = resp.Body.Close() }() to explicitly ignore
the close error, satisfying the errcheck linter.

Refs hrygo#335

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant