backnotprop / backnotprop/plannotator

Entire chat being resent on every load

Open
#1,349 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
11h 12m
Merged PRs (30d)
109

Description

### What happened?

When OpenCode v2 is closed, and the last thing in the chat is a submit_plan, when OpenCode is reopened, the entire chat is resent. This causes a massive drain in tokens very quickly. I'm guessing this is due to the background server OpenCode now runs in their v2 version.

I've reported this to the OpenCode team, but they said it was an issue on the plugins end. I've seen this issue with multiple other plugins as well.

Let me know if I can provide any more details

### Plannotator version

v0.26.8

### OS

macOS

### Agent

OpenCode

### Where did it happen?

Plan review

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Plan review flow with OpenCode v2: close OpenCode when the last chat item is submit_plan, then reopen it and observe whether the entire chat is resent. Compare this behavior with other plugins or agent flows if available; done means reopening does not resend the existing chat or cause the reported token drain.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.