Skip to content

[Agent Usage] OpenCode Go usage not parsing — shows parse_error #30822

Open

Description

@AllenLINNN

Extension

https://www.raycast.com/thuggyduck/agent-usage

Raycast Version

2.2.0.0

OS Version

macOS 27.0

Description

The OpenCode Go entry in Agent Usage is no longer able to retrieve usage data. Instead, it shows an Error state, and the displayed usage value appears to be stuck on an older value.

This previously updated normally, so it looks like the OpenCode Go usage page may have changed in a way the extension's parser no longer handles.

Opening the detail panel shows:

  • Message: Could not find usage data in OpenCode Go page. The page format may have changed.
  • Status: Error
  • Error Type: parse_error

Steps To Reproduce

  1. Open the Agent Usage extension.
  2. Configure OpenCode Go with the workspace ID and auth cookie.
  3. View the OpenCode Go entry.

Current Behaviour

The OpenCode Go entry shows an Error state instead of current usage data, and the displayed value no longer updates.

Expected Behaviour

The OpenCode Go entry should retrieve and display the current usage data normally.

Activity

  1. added
    bug
    extension
    on Sep 6, 2026
  2. added theissue type on Sep 6, 2026
  3. added
    extension: agent-usage
    on Sep 6, 2026
  4. raycastbot commented on Sep 6, 2026

    @raycastbot
    Collaborator

    Thank you for opening this issue!

    🔔 @natsustan @alexibuild @AdrianBonpin @GarrickZ2 @EDM115 @chingweih @natsustan @jakoss you might want to have a look.

    💡 Author and Contributors commands

    The author and contributors of thuggyduck/agent-usage can trigger bot actions by commenting:

    • @raycastbot close this issue Closes the issue.
    • @raycastbot close as not planned Closes the issue as not planned.
    • @raycastbot close as duplicate Closes the issue as duplicate.
    • @raycastbot rename this issue to "Awesome new title" Renames the issue.
    • @raycastbot reopen this issue Reopens the issue.
    • @raycastbot assign me Assigns yourself to the issue.
    • @raycastbot good first issue Adds the "Good first issue" label to the issue.
    • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.
  5. ericrocha97 commented on Sep 8, 2026

    @ericrocha97
    Contributor

    Hi @AllenLINNN — thanks for the report 👋

    This is fixed by #30849 (just merged): OpenCode Go usage is now fetched from the Zen JSON API (https://opencode.ai/zen/go/v1/usage) instead of scraping the workspace web page, so the parse_error from page changes is gone.

    On the setup side, the workspace ID and auth cookie preferences were replaced by an OpenCode Go API Key preference, which is auto-detected from ~/.local/share/opencode/auth.json (the opencode-go entry) after running opencode auth login. You can also paste your Zen API key manually from https://opencode.ai/settings — the manual preference takes priority.

    The fix should land in the Raycast Store once the extension update is published; if you still see the error after updating, let us know.

  6. AllenLINNN commented on Sep 8, 2026

    @AllenLINNN
    Author

    Confirmed it's working now. Thanks for the quick fix! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionextension: agent-usageplatform: macOS

    Type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions