Skip to content

Achievements tab fails to render when token reporting is disabled #155

Description

@notsalate

Description

Summary

In the Level Up section, the Achievements tab fails to render when token reporting is temporarily disabled.

Other Level Up tabs render normally. The problem appears specifically when opening Achievements.

AI Engineer Coach: Reload Data succeeds. The parser and analyzer complete normally, so the issue appears to be in the Achievements render path, not in log parsing.

This reproduces both on my previously installed VSIX and on a fresh VSIX built from the latest main branch.

Actual behavior

When opening the Achievements tab, the UI shows:

Failed to render Level Up
Token reporting is temporarily disabled

After rebuilding from the latest main, the DevTools console shows:

app.js:14563 Uncaught (in promise) Error: Token reporting is temporarily disabled
    at app.js:14563:18

Before rebuilding from latest main, the same error appeared at a nearby generated bundle location:

app.js:14561 Uncaught (in promise) Error: Token reporting is temporarily disabled

Reload Data succeeds

The extension logs show that parsing and analyzer construction complete successfully:

parse-complete | sessions=242 workspaces=180
analyzer-built
data-ready-sent
warmUp-done

Filters tested

The issue reproduces with both:

Workspace: Current / Harness: Codex
Workspace: All / Harness: All Harnesses

Other tabs and sections

The following Level Up tabs render normally:

  • Learning
  • SDLC
  • Share

The following dashboard sections also continue to work:

  • Dashboard
  • Timeline
  • Coding Moments
  • Output
  • Patterns
  • Anti-Patterns
  • Skill Finder
  • Context Health

Notes

The error looks like an unhandled disabled-state for token reporting. Since token reporting is intentionally disabled, the Achievements tab probably needs to catch this condition and render a fallback instead of throwing an uncaught promise rejection.

Steps to Reproduce

  1. Build and install the extension from the latest main branch:

    git clone https://github.com/microsoft/ai-engineering-coach.git
    cd ai-engineering-coach
    npm ci
    npm run package
    code --install-extension (Get-ChildItem . -Filter 'ai-engineer-coach-*.vsix' | Select-Object -First 1).FullName
  2. Reload VS Code.

  3. Open AI Engineer Coach.

  4. Confirm that the dashboard shows the token reporting notice:

    Token Usage & Burndown temporarily hidden
    These features are disabled until we can verify that reported numbers align with GitHub's billing data.
    
  5. Open Level Up.

  6. Open the Achievements tab.

  7. Run AI Engineer Coach: Reload Data.

  8. Reopen Level UpAchievements.

Expected Behavior

The Achievements tab should render without token-dependent data, or show a graceful disabled-state fallback when token reporting is unavailable.

For example: Achievements are temporarily unavailable because token reporting is disabled.

The tab should not fail with a render error.

Extension Version

0.1.0, latest main built from source on 2026-06-22

VS Code Version

1.125.1

Operating System

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions