fix(ide-tail): authenticate against the token-gated daemon#46
Merged
Conversation
iak-claude-tail predates the :8788 Bearer-token hardening and has been silently 401ing ever since — the CodeWatch IDE channel stayed empty because every /ide-chat POST was rejected. The tail now sends Authorization: Bearer from IAK_DAEMON_TOKEN, falling back to the standard gate token file (~/.config/iak-gate.token, override via IAK_DAEMON_TOKEN_FILE), and a 401 now logs an actionable hint instead of a bare status code. Verified live on the Mini: events flow into /ide-chat/claudemm with the fix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
ThinkOffApp
commented
Jul 16, 2026
ThinkOffApp
left a comment
Owner
Author
There was a problem hiding this comment.
Reviewed the 17-line authentication fix. The env-first/file-fallback token resolution, trimmed file contents, conditional Bearer header, and actionable 401 diagnostic are consistent with the daemon hardening described in the PR. No blocking findings. GitHub would not allow an approval because this PR is authored by the authenticated account, so this is recorded as a review comment instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while standing up the IDE channel for Petrus's review:
iak-claude-tailhas been silently broken since the :8788 token hardening (2026-07-08) — every/ide-chatPOST 401'd, so the CodeWatch IDE channel had no data and nobody noticed until today.Authorization: BearerfromIAK_DAEMON_TOKEN, else the standard gate token file (~/.config/iak-gate.token,IAK_DAEMON_TOKEN_FILEto override) — same convention as the other :8788 callers.Verified live on the Mini: with the fix, session events flow into
GET /ide-chat/claudemm.Follow-up (separate): the tail isn't supervised by
start-all.shon either machine — it should be, or the IDE channel dies on every reboot.🤖 Generated with Claude Code