[Bug]: Adds a request each time background process pings the agent. Not friendly to copilot pricing.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- bun, typescript
- Domain
- cli
Research direction
Reproduce the issue using opencode.json, the Copilot provider, and the pty_* extension described in the steps. Trace the background-process completion ping and verify that one user message results in one request rather than one request per pty call.
Written by the indexing model from the issue text.
Description
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:
- Configure plugin in opencode.json
- Run opencode
- Activate model with copilot provider
- Ask the model to run a process with the pty_* extension and say "hello" after it's done running.
- The agent will stop itself after launching background process, activate again when it pings on completion, and then say hello
- 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.
- Dominant language
- TypeScript
- Stars
- 594
- Forks
- 61
- Avg merge
- 13h 20m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from shekohex/opencode-pty
-
[Bug]: exit notification delivery failures are silently swallowed — agent never wakes, no diagnosticOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
shekohex/opencode-pty#54 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
shekohex/opencode-pty#48 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
shekohex/opencode-pty#67 · 2 comments · 1 reaction ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 56/100
shekohex/opencode-pty#66 ·
-
[Feature]: Setting to have the web ui running even without /pty-... commandPossibly taken @kumar-shivang claimed this 16 days ago. Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 65/100
shekohex/opencode-pty#60 · 3 comments ·
All issues in shekohex/opencode-pty
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/DebateAI#611 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openzim/mwoffliner#2933 ·
Maintainers usually reply within 1 day
-
Use the README category name for website links and submissionsPossibly taken @dajiaohuang claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
birobirobiro/awesome-shadcn-ui#647 ·
Maintainers usually reply within 2 days
-
Twake Drive picker: closePicker() never destroys the intent (stop() is on the promise returned by start(), not by create())Possibly taken @chibenwa claimed this today. Openclaude
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
linagora/twake-calendar-frontend#1498 · 1 comment ·
Maintainers usually reply within 1 day
-
check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day