Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

tj status repeats its framing note per agent and gives SDK agents a Claude Code-only CTA

Aperta Adatta ai principianti
#591 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Inizia in tokenjam/cli/cmd_status.py: leggi il loop degli agent di cmd_status e l’hint sul plan-tier sconosciuto, poi ispeziona is_interactive_coding_agent in tokenjam/core/alerts.py. Esegui tj status con più agent che condividono una modalità di pricing e con agent SDK/API e interattivi il cui plan tier è sconosciuto. Fatto quando la nota di framing compare una volta e l’hint corrisponde al tipo di agent rilevante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug help wanted

Problem

tj status has two related persona bugs when multiple agents are present.

1. The subscription/local framing note repeats once per agent. _print_agent_status calls _framing_note(framing) and prints its result inside the per-agent block:

console.print(f"  Cost today:     {_cost_line(data, framing)}")
note = _framing_note(framing)
if note:
    console.print(f"  [dim]{note}[/dim]")

This function is invoked once per agent inside the for aid in agent_ids: loop in cmd_status. When several agents share the same pricing mode (e.g. all on a subscription plan), the identical note — "Subscription plan — flat-fee billing; cost shown as share of your monthly plan, not dollars spent." — prints once under every agent block. Three agents means the same sentence three times in one screen.

2. The "unknown plan tier" hint always recommends Claude Code/Codex, even for SDK agents. After the per-agent loop, cmd_status prints:

console.print(
    f"[dim]Note: {unknown_count} session(s) have unknown plan tier. "
    f"Run [bold]tj onboard --claude-code --reconfigure[/bold] "
    f"(or [bold]--codex[/bold]) to set it.[/dim]"
)

This is a hardcoded string with no persona check. It assumes every agent with an unknown plan tier is either a Claude Code or Codex integration. Agents instrumented via the SDK/API path aren't managed by either of those flags, so this hint is inapplicable advice for them.

Expected

  • The framing note prints once per tj status invocation (a single footer line), not once per agent.
  • The unknown-plan-tier hint only recommends tj onboard --claude-code --reconfigure (or --codex) when at least one of the agents shown is an interactive coding agent. When none are, the message should point at the plan setting directly instead ([budget.<provider>] plan in the config file), since neither --claude-code nor --codex applies to SDK/API integrations.

Where to look

  • tokenjam/cli/cmd_status.py:54 — the for aid in agent_ids: loop
  • tokenjam/cli/cmd_status.py:113 — _print_agent_status(agent_data, active_alerts, session, framing) call site
  • tokenjam/cli/cmd_status.py:311-324 — _print_agent_status, including the _framing_note call at line 322
  • tokenjam/cli/cmd_status.py:131-136 — the hardcoded unknown-plan-tier CTA
  • tokenjam/core/alerts.py:65-78 — is_interactive_coding_agent(agent_id), the existing single-source-of-truth helper for classifying an agent id as Claude Code/Codex vs. SDK; reuse it rather than adding a second classifier

Done when

  • Running tj status with multiple agents on the same pricing mode prints the framing note exactly once for the whole command, not once per agent.
  • When every agent with an unknown plan tier is a non-coding (SDK/API) agent, the printed hint no longer suggests --claude-code/--codex reconfigure.
  • When at least one agent with an unknown plan tier is an interactive coding agent, the existing --claude-code --reconfigure / --codex hint still shows.
Lingua principale
Python
Stelle
122
Fork
35
Merge medio
1g 18h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Metabuilder-Labs/tokenjam

Tutte le issue di Metabuilder-Labs/tokenjam

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.