v1.0.0-beta.5: fix VS Code chat side-panel footer layout

This commit is contained in:
Homer committed 2026-11-27 10:53:16 +00:00
1 parent 3438c290ba
commit 63d705c76c
7 files changed
+23 -5

No files matched your search

+6
View File
@@ -1,5 +1,11 @@
# Changelog
## [1.0.0-beta.5] — 2026-11-27
### Fixed (VS Code / VSCodium)
- **Chat input pinned to the bottom of the side panel.** Wrapped the header, collapsible Tune drawer, and subagent strip inside a single `.chrome` container and restored a 3-row `body` grid (`auto minmax(0, 1fr) auto`) with `height: 100vh`. Previously, `hidden` (`display: none`) siblings shifted `<main id="log">` and `<footer>` onto `auto` tracks above an empty `1fr` track, floating the chat composer near the top with empty space beneath it.
## [1.0.0-beta.4] — 2026-11-27
### Fixed (VS Code / VSCodium & Neovim)
+1 -1
View File
@@ -1 +1 @@
1.0.0-beta.4
1.0.0-beta.5
+1 -1
View File
@@ -17,7 +17,7 @@ local function read_repo_version()
if v ~= "" then return v end
end
end
return "1.0.0-beta.4"
return "1.0.0-beta.5"
end
M.config = {
+6 -2
View File
@@ -1,10 +1,11 @@
/* Every colour is one of the editor's theme variables. */
html, body { height: 100%; }
html, body { height: 100%; overflow: hidden; }
body {
margin: 0;
padding: 0;
height: 100vh;
display: grid;
grid-template-rows: auto auto auto minmax(0, 1fr) auto;
grid-template-rows: auto minmax(0, 1fr) auto;
color: var(--vscode-foreground);
background: var(--vscode-sideBar-background);
font-family: var(--vscode-font-family);
@@ -12,6 +13,7 @@ body {
line-height: 1.5;
overflow-x: hidden;
}
.chrome { min-width: 0; }
* { box-sizing: border-box; }
/* ---- Header bar ------------------------------------------------------------------------ */
@@ -52,6 +54,8 @@ body {
}
.bar-btns {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 4px;
}
+2
View File
@@ -37,6 +37,7 @@ function chatHtml(o) {
<title>LLeMbas</title>
</head>
<body>
<div class="chrome">
<header class="bar">
<div class="bar-top">
<div class="brand">
@@ -92,6 +93,7 @@ function chatHtml(o) {
</div>
</section>
<div id="team-bar" class="team-bar" hidden aria-live="polite"></div>
</div>
<main id="log" aria-live="polite">
<section id="empty" class="empty">
<div class="hero">
+1 -1
View File
@@ -697,7 +697,7 @@ test('full agentic features: question & plan cards, session resume, @file search
// 5. Compact session & webview settings drawer (autocomplete tokens slider + length + instructions)
await run('llembas.compact');
assert.ok(items().some((i) => i.kind === 'note' && i.text.includes('Compacted 2 turns')));
await until(() => items().some((i) => i.kind === 'note' && i.text.includes('Compacted 2 turns')));
view.say({ type: 'updateSettings', settings: { maxTokens: 512, length: 'block', instructions: 'Use strict types' } });
await until(() => s.config['llembas.complete.maxTokens'] === 512);
+6
View File
@@ -327,6 +327,12 @@ test('the page: a strict policy, one script with a nonce, nothing from elsewhere
});
assert.ok(multi.includes('style-src vscode-resource: https://file+.vscode-resource.vscode-cdn.net;'));
assert.throws(() => chatHtml({ cspSource: "https://a.example; script-src 'unsafe-inline'", nonce: 'abc', scriptUri: 's', styleUri: 't' }));
// Layout invariant: body has exactly 3 visible top-level grid children (.chrome, #log, footer)
// so hiding collapsible drawers inside .chrome never shifts #log or footer off their grid tracks.
const body = /<body>([\s\S]*)<\/body>/.exec(html)[1];
assert.match(body, /^\s*<div class="chrome">[\s\S]*<\/div>\s*<main id="log"[\s\S]*<\/main>\s*<footer>[\s\S]*<\/footer>\s*<script\b/);
const css = fs.readFileSync(path.join(__dirname, '..', 'media', 'chat.css'), 'utf8');
assert.match(css, /grid-template-rows:\s*auto minmax\(0,\s*1fr\) auto;/);
});
test('the stylesheet takes every colour from the editor\'s theme', () => {