Repository navigation
chat-client: sl-chat-thread's after slot, sub-agent result, user Markdown; sl-drawer frameless; v0.3.0 - #9
Merged
Merged
Conversation
…or v0.3.0 sl-drawer gains `frameless`, a reflected boolean property and attribute in the style of `modal`. Docked, it drops the aside's border and radius and the header's and body's padding, and puts the foundation's `visually-hidden` class on the header, so the h2 stays the aside's accessible name (aria-labelledby) while taking no row. The rules are scoped to `:host([frameless]) aside`, so the modal dialog keeps its header, padding, and visible heading. The aside keeps its --bg-1 surface: the brief named border, radius, and padding only. In sl-chat-thread, `.markdown table` sets `overflow-wrap: normal`, so the content's `anywhere` no longer reaches the cells and shrinks the table's min-content; the table's own overflow-x then scrolls it inside the thread. Paragraphs keep breaking long words. The example pages show both: the chat thread has a wide-table state (in the states and at 20rem; the specimen count is 66), and the drawer page a Frameless checkbox, which two new screenshot states use (docked at 1280px, and open at 480px with its frame kept). package.json is 0.3.0; CHANGELOG's Unreleased becomes [0.3.0] - 2026-11-30, with the drawer under Added and the table under Fixed, ordered Added, Changed, Fixed; the README installs v0.3.0. Not tagged.
… the line width Package documentation: the class doc comment's frameless paragraph had split modal's own switch sentence off onto an overlong line, and the sheet's header ran past 100 columns.
… for v0.3.0
- An `after` slot inside the frame, after the items, in a box of its own hidden
until an element is assigned (set on slotchange, not rendered), so an empty
slot takes no room. The follower's ResizeObserver watches that box too, and
measures the last item's and the box's growth together.
- Following: an update reads "at the end" against the current scroll height or
the one last seen, so a delta arriving after unfollowed growth (slotted
children, an image) and before the observer's callback keeps following.
Tested with growth and deltas in one task, and with deltas streamed faster
than frames, at the end and scrolled up.
- `subagent_result` item `{type, id?, name, status, href?, label?, content?,
error?}`: status is text to show, not ItemStatus, so an app passes its own
states (Mikoshi's finished/failed/stopped) through. Validated before render:
name and status non-empty text, other fields text where given, else skipped
like an unknown item. Rendered in both modes as a collapsed details,
"Sub-agent <name> · <status>", holding the link (label, else href; an href
markdown wouldn't link shows as its label alone), then the error, then the
content as Markdown, or "No result." when neither.
- A user's input_text renders as Markdown with `breaks: true`; answers keep
`breaks: false`. markdown() takes `{ breaks }`, and markdown.ts exports
`linkable(url)`, the link check the result's href reuses.
- Example page: a user message with code, a list, and line breaks; a result
collapsed (verbose off and on), opened, and failed opened; a decision form
slotted in a held thread. CHANGELOG 0.3.0, README, and docs updated.
…omments A sub-agent result's blank href is no link, as a blank label, error, or content is none (validation-first), with its test case; the after slot's box takes logical padding; the name/status check is one filled() helper; ThreadItem's doc comment is a well-formed block and ChatThread's says name and status must be non-empty; the CHANGELOG's Changed list is one list.
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.
capstone.data-intelligence.mikoshi · task 21/32 · chat-client
Summary
This is the fourth brief: brief 3 plus the close-out you settled in rounds 7–10. chat-client
ends with slices 24–25, which now also fix Settings' focus. Everything else this session surfaced
is staged after the merge, in the plan + retro phase:
scroll-regions: web-foundation v0.5.0 holds the page to the viewport and gives everycollection and dialog its own scroll region, with web-components v0.4.0, webappgen and
Mikoshi aligned, plus the dialog focus convention.
narrow-layout,chat-usage, andsearch-clientwith the global Upload and event log.The principle pages for future web sessions.
Built now, slices 20–23, before the tag:
delivered as a
subagent_resultitem, and a redirected message as your text withto.text and no edge bar. The composer's focus outline is no longer clipped.
slot at the end for
chat-usage. The gap above the input is the bar plus a small space.agent), extract (Tape sweep)", quoting the session's first message.
web-components v0.3.0 (to be tagged):
sl-chat-threadgains:afterslot inside its frame, followed as it grows;sl-drawergainsframeless.After the tag, slices 24–25:
afterslot. The thread becomes the only scroll, withits border whole, filling the pane from the first message, and it follows while you're at
the end.
check.
Screenshots
Sent alongside this brief:
10-session-wide, light and dark: the cyan tab and tree selection, and the status bar.9-session-390px.4-context-wide: the tinted selection.18-session-agents-wide: the decisions and the bar. Until slice 24, the thread's top borderstill scrolls away here.
22-notices-wide: the notice naming tools and agents.wc-subagent-result-linewc-user-markdownwc-after-slot-and-following/tmp/claude-1000/-home-jaime-capstones-capstone-mikoshi/c1e31de3-71b1-4a57-b33e-4f2a84f0ed75/scratchpad/final3/Core changes
presentTurns(domain/chat): in the read only, a stored user message holding a result'sJSON becomes
{"type":"subagent_result",…}. It must match strictly: no extra members, an idnaming a child of the session, and a known status. Stored items and the model's input are
unchanged. Why: the result read as your message.
sl-chat-thread(web-components): theafterslot, thesubagent_resultitem, andinput_textthroughmarkdown(text, {breaks: true}). "At the end" is now measured againstboth the current and the last-seen height. Why: so decisions live in the thread's own scroll,
results read as results, and following doesn't stop mid-answer.
--color-accent: var(--cyan)on:rootin app.css. The selected tree row iscolor-mix(… var(--tint), transparent)with no edge. Why: you asked for an accent other thanpink and no curved one-sided marks.
.session-bar: a fixed one-line grid holding the status and.session-usage. Why: thespace under the thread is predictable, and
chat-usagefills the slot.Verify
mise run check: ✓ Go, lint, sqlint, lints. Web unit 153/153, browser126/126, plus 1 skipped until the v0.3.0 pin (the frameless pane).
mise run integration: ✓, including the delivered-result read.mise run check: ✓ unit 92/92, browser 486/486.mise run serve, then open a session → the tab underline and the selected tree row are cyan,the selected row has no edge bar, and a single status line sits between the thread and the
input.
curl …/sessions/<session> | jq '.turns[].items[] | select(.type=="subagent_result")'showsthe result. In the client, the "User" JSON bubble is gone; the line itself arrives with slice
24.
for a decision, in “…”".
mise run examplesand open the chat-thread page → the result line,your Markdown with its line breaks, and a form in the
afterslot, held at the thread's end.Decided without you
tonames the sub-agentonly.
transparent, as web-foundation's--tintdocuments, and keeps thevar(--magenta)fallback so the element still works outside Mikoshi. Hover and selection areboth square.
yet as "(a sub-agent)".
it disables.
sl-chat-thread's result item takes a display name, status, link and Markdown content, andknows nothing of Mikoshi. It validates each field, and a blank or unsafe link renders no link.
it.
docs state the rest.
Redirects and escalations
save_analysis, the keys, and theflush pane (rounds 3–5).
as "User", the curved selection marks, the pink accent, your messages' Markdown, whitespace
above the input, and the "Hello?" notice. Round 6 settled them; context usage becomes
chat-usageand the narrow layout becomesnarrow-layout..session-scroll, gone at slice 24), collectionsscrolling in their own region, and dialogs opening on their first control. Rounds 7–10 settled
them: Settings is fixed here, and the rest is staged as
scroll-regions.Merge danger: one-way door for the web-components
v0.3.0tag only (Release; acceptingauthorizes it). Blast radius: web-components (its v0.3.0 consumers) and capstone-mikoshi. Order:
v0.3.0is tagged and released.chat-client.Needs you: none