# fix\(opencode\): actionable error when a session outgrows the model window · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/073cb011c5a2f3b39f352173108267d6b9771928)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 073cb011c5a2f3b39f352173108267d6b9771928

Requested commit: 073cb011c5a2f3b39f352173108267d6b9771928

Commit: 073cb011c5a2f3b39f352173108267d6b9771928

Tree: 24197d394bad37a416127ef78b8e57d2eb98b6d0

Author: Imamuzzaki Abu Salam

Committer: Imamuzzaki Abu Salam

## Message

```
fix(opencode): actionable error when a session outgrows the model window

OpenCode reports an oversized session as a bare InvalidRequest, so the
run failed with the provider's generic 'invalid parameters' text and
every retry failed identically. When the window is known and this
turn's observed input already meets it, fail with what actually
happened plus the recovery (fork from an earlier completed run or
start fresh). Anything without size evidence keeps the original error.

```

## Parents

- [51273020db3245f4ec29514a419d29b5dcb012dc](https://git.cafe/pingdotgg/t3code/commit/51273020db3245f4ec29514a419d29b5dcb012dc?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/073cb011c5a2f3b39f352173108267d6b9771928?format=markdown)
