mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-11 15:27:22 +02:00
feat: add instructional text to cookie picker page
"Select the domains of cookies you want to import to GStack Browser. You'll be able to browse those sites with the same login as your other browser." Also fixes stale test that expected hardcoded '--model', 'opus'. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -46,6 +46,15 @@ export function getCookiePickerHTML(serverPort: number, authToken?: string): str
|
|||||||
font-family: 'SF Mono', 'Fira Code', monospace;
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
padding: 10px 24px 12px;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #999;
|
||||||
|
line-height: 1.5;
|
||||||
|
border-bottom: 1px solid #222;
|
||||||
|
background: #0f0f0f;
|
||||||
|
}
|
||||||
|
|
||||||
/* ─── Layout ──────────────────────────── */
|
/* ─── Layout ──────────────────────────── */
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -300,6 +309,8 @@ export function getCookiePickerHTML(serverPort: number, authToken?: string): str
|
|||||||
<span class="port">localhost:${serverPort}</span>
|
<span class="port">localhost:${serverPort}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="subtitle">Select the domains of cookies you want to import to GStack Browser. You'll be able to browse those sites with the same login as your other browser.</p>
|
||||||
|
|
||||||
<div id="banner" class="banner"></div>
|
<div id="banner" class="banner"></div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -86,9 +86,11 @@ describe('Sidebar prompt injection defense', () => {
|
|||||||
|
|
||||||
// --- Model Selection ---
|
// --- Model Selection ---
|
||||||
|
|
||||||
test('default model is opus', () => {
|
test('model routing defaults to opus for analysis tasks', () => {
|
||||||
// The args array should include --model opus
|
// pickSidebarModel returns opus for ambiguous/analysis messages
|
||||||
expect(SERVER_SRC).toContain("'--model', 'opus'");
|
expect(SERVER_SRC).toContain("return 'opus'");
|
||||||
|
// spawnClaude uses the model router
|
||||||
|
expect(SERVER_SRC).toContain("'--model', model");
|
||||||
});
|
});
|
||||||
|
|
||||||
// --- Trust Boundary ---
|
// --- Trust Boundary ---
|
||||||
|
|||||||
Reference in New Issue
Block a user