fix(app): terminal improvements - focus, rename, error state, CSP (#9700)

This commit is contained in:
Halil Tezcan KARABULUT 2026-01-21 15:49:46 +03:00 committed by GitHub
commit 87d91c29e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 348 additions and 62 deletions

View file

@ -499,6 +499,7 @@ export namespace Server {
)
.all("/*", async (c) => {
const path = c.req.path
const response = await proxy(`https://app.opencode.ai${path}`, {
...c.req,
headers: {
@ -508,7 +509,7 @@ export namespace Server {
})
response.headers.set(
"Content-Security-Policy",
"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self'",
"default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' data:",
)
return response
}) as unknown as Hono,