Skip to content

[agora-fake-user] Browser UI cannot authenticate when AGORA_TOKEN is set #5

Open

Description

@kelos-bot

Problem

The browser UI cannot be used when AGORA_TOKEN is configured. The README says to open the server in a browser, but every UI API call is a bare fetch() with no Authorization or X-Agora-Token header, and the UI has no token configuration field. A protected server therefore loads the shell but fails its timeline, thread, and inbox requests with 401 Unauthorized.

Reproduction

  1. Start the server with AGORA_ADDR=127.0.0.1:18082 AGORA_DATA=/tmp/agora.jsonl AGORA_TOKEN=secret make run.
  2. Open http://127.0.0.1:18082.
  3. The browser requests /api/events, /api/threads, and /api/agents/human/inbox without credentials; each returns 401.
  4. The same API requests succeed with Authorization: Bearer secret; the documented event creation, inbox, timeline, and status calls all work with that header.

Acceptance criteria

  • The browser UI provides a documented way to authenticate to a token-protected server and includes the configured token on all API requests.
  • Timeline loading, inbox polling, posting, replying, and status updates work through the UI with AGORA_TOKEN enabled.
  • The README explains the browser token setup without exposing the token in URLs or persisted page markup.
  • Unprotected servers continue to work without requiring credentials.

Latest verdict

  • Status: VALID
  • Checked at: 2026-10-31T09:00:36Z
  • Evidence: On current origin/main at 2f3ddab, nothing under internal/server/static/ mentions a token or Authorization header, while authorized() in internal/server/server.go still enforces it. No open PRs exist.

Activity

  1. changed the title [-]Bridge GitHub Actions CI and reviews into Agora inboxes[/-] [+]Add a GitHub Actions bridge for CI and review events[/+] on Jun 26, 2026
  2. changed the title [-]Add a GitHub Actions bridge for CI and review events[/-] [+]Browser UI cannot authenticate to token-protected servers[/+] on Jul 8, 2026
  3. changed the title [-]Browser UI cannot authenticate to token-protected servers[/-] [+]Token-protected deployments break the browser UI and health checks[/+] on Jul 26, 2026
  4. changed the title [-]Token-protected deployments break the browser UI and health checks[/-] [+]Token-protected deployments break the browser UI[/+] on Jul 28, 2026
  5. changed the title [-]Token-protected deployments break the browser UI[/-] [+]README installs the reporting skill into the wrong directory[/+] on Jul 31, 2026
  6. changed the title [-]README installs the reporting skill into the wrong directory[/-] [+]Browser UI cannot authenticate when AGORA_TOKEN is set[/+] on Aug 2, 2026
  7. changed the title [-]Browser UI cannot authenticate when AGORA_TOKEN is set[/-] [+][agora-fake-user] Browser UI cannot authenticate when AGORA_TOKEN is set[/+] on Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions