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

[Bug]: Adds a request each time background process pings the agent. Not friendly to copilot pricing.

Aperta
#34 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
bun, typescript
Ambito
cli

Direzione di ricerca

Riproduci il problema usando opencode.json, il Copilot provider e la pty_* extension descritta nei passaggi. Traccia il ping di completamento del processo in background e verifica che un messaggio dell'utente produca una richiesta anziché una richiesta per ogni pty call.

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

Descrizione

bug

Description

Github Copilot follows a request based subscription instead of token based. Normally, a request is deducted with every user message. With this plugin, I've noticed it gets deducted every time the background process calls pings the agent to get its attention.

Reproduction Steps

Steps to reproduce the behavior:

  1. Configure plugin in opencode.json
  2. Run opencode
  3. Activate model with copilot provider
  4. Ask the model to run a process with the pty_* extension and say "hello" after it's done running.
  5. The agent will stop itself after launching background process, activate again when it pings on completion, and then say hello
  6. You will get 2 requests deducted from copilot subscription.

Expected Behavior

Single request should have been deducted for a single user message. The pty_spawn is a tool call and normally these calls don't cause extra request deduction.

Actual Behavior

A single user message can deducts number_of_pty_calls + 1 requests.

Environment

  • OS: Windows 10
  • OpenCode Version: 1.4.3
  • Plugin Version: 0.3.2
  • Bun Version: 1.3.12

OpenCode Configuration

opencode.json (sanitized)

Debug Logs

Click to expand debug logs

Additional Context

Add any other context about the problem here.

Lingua principale
TypeScript
Stelle
597
Fork
65
Merge medio
1g 20h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 shekohex/opencode-pty

Tutte le issue di shekohex/opencode-pty

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.