feat: one help-first assistant with map chat and note editing - #69
Merged
Conversation
…ssistant; retire AI Chat dialog
… ordinary spaces, no th in the tool's tag list
✅ Deploy Preview for bazgaars-fmg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges three separate assistant lineages into one surface: the upstream help widget, the BYOK map agent, and the Quill notes editor. The dialog opens on Help and keeps the model AI one click away.
What changes
One assistant dialog.
#helpAssistantgains a segmented mode control. Help is the upstream gateway widget, unchanged in behaviour. This map is the BYOK agent, moved out of the old AI Chat dialog. Switching modes never rebuilds the other panel, so a half-typed question or an in-flight request survives.Help first. The
?bubble always opens Help. Only contextual entry points land on This map: the Tools button (relabelled Assistant) and the notes editor's robot button, where the user has already asked for the map assistant.Model choice behind a click. Model, API key and local-server fields live in a drawer behind a gear. A status line names the current model and whether a key is set. The drawer opens itself only when sending is impossible without it. Storage keys are unchanged, so existing keys and conversations carry over.
Notes editing. The agent gets one mutation tool,
write_note, alongside the read-onlyrun. It writes through a new notes-editor bridge (current/write/remove/getSelectionHtml) so an open editor stays in sync, and refuses HTML the editor cannot hold rather than silently forcing raw mode. Every edit appears in the transcript with its own Undo, which restores the previous legend (or removes a created note); whole-note writes clear Quill's undo stack by design, so the assistant does not rely on Ctrl+Z.Session plumbing.
createSession(getConfig, tools)now dispatches any registered tool by name and reports unknown names back to the model as errors.runis the built-in first tool. Map editing later adds tools, not architecture.Retired. The separate AI Chat dialog and its registry entry. The AI Text Generator stays registered but is no longer reachable from the notes editor.
Also included
feat/notes-editor-quill(TinyMCE replaced by a bundled Quill 2, TinyMCE replacement Azgaar/Fantasy-Map-Generator#1803). That work is a separate upstream PR; it arrives here as the early fork port because the notes bridge sits on it.versioning.tsto 1.151.3. The previous-fork.1suffix named a fork desktop release on the older upstream base and does not carry over.bottom: 100px; right: 36pxtobottom: 120px; right: 20px: it overlapped the new help bubble by about 8px. Upstream has the same collision.Verification
tsc --noEmitsilent; Biome clean; a realnpm ciagainst the merged lockfile.write_noteedit landing in the note, the editor and the hover box with Undo restoring all three, the missing-key drawer, plus the three notes-editor tests.Design:
docs/superpowers/specs/2026-09-05-help-assistant-ai-merger-design.md. Plan:docs/superpowers/plans/2026-09-05-help-assistant-ai-merger.md.