Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- **Asking a question on the map no longer fails with “Prompt is too long”:** the Ask bar lets Claude Code read and search the project, and it could open the map’s own generated `floorplan/index.html` (about 2 MB on one line). One short question could then grow past the context limit and stop with “Prompt is too long”, after using a lot of the person’s allowance. Claude Code is now told not to read that file or the map’s other generated files.

## 0.7.3 (2026-11-10)

- **A long description no longer covers the map in a short window:** when the map opened in a window that isn’t very tall (a laptop screen, or the map inside a frame), the heading’s description could run over the top row of boxes, because only part of the heading was kept clear when the map was fitted. The whole heading is now kept clear (up to just under half the window), and in a window under 760 pixels tall a long description folds to three lines with a More / Less toggle, as it already did on phones.
Expand Down
3 changes: 3 additions & 0 deletions skills/floorplan/assets/serve.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ const failCode = (msg) => /not logged in|logged out|\/login|log ?in again|sign i
function claudeRun(body, mode) {
const args = [...cli.args, '-p', '--output-format', 'stream-json', '--verbose',
'--json-schema', JSON.stringify(mode.schema), '--append-system-prompt', mode.instructions,
// Keep the agent out of the map's own generated files. floorplan/index.html inlines the layout engine and
// fonts (about 2 MB on one line), and reading it can push a single question past the context limit.
'--disallowedTools', 'Read(floorplan/index.html)', 'Read(floorplan/serve.mjs)', 'Read(floorplan/page-safety.mjs)', 'Read(floorplan/.cache/**)',
'--tools', 'Read,Grep,Glob,Bash', '--allowedTools', 'Bash(node floorplan/query.mjs:*)', 'Read', 'Grep', 'Glob'];
if (body.session) args.push('--resume', String(body.session));
if (model) args.push('--model', model);
Expand Down
1 change: 1 addition & 0 deletions tests/ask.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ test('the Claude Code CLI comes first for a map Claude built, with read-only too
const [first, second] = s.calls();
assert.ok(first.args.includes('-p'));
assert.deepEqual(first.args.slice(first.args.indexOf('--allowedTools') + 1), ['Bash(node floorplan/query.mjs:*)', 'Read', 'Grep', 'Glob']);
assert.ok(first.args.slice(first.args.indexOf('--disallowedTools') + 1).includes('Read(floorplan/index.html)'), 'the generated map page is off limits');
assert.equal(first.input, 'How do refunds work?');
assert.equal(second.args[second.args.indexOf('--resume') + 1], 'test-session');
});
Expand Down