feat(app): keep prompt state in tabs (#33566)

This commit is contained in:
Brendan Allan 2026-06-24 09:32:59 +08:00 committed by GitHub
commit fed4f4d86b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 132 additions and 7 deletions

View file

@ -20,6 +20,8 @@ beforeAll(async () => {
mock.module("@solidjs/router", () => ({
useParams: () => ({}),
useSearchParams: () => [{}],
useLocation: () => ({ pathname: "", query: {} }),
useNavigate: () => () => undefined,
}))
mock.module("@opencode-ai/ui/context", () => ({
createSimpleContext: () => ({