Repository navigation
feat: one copy path, image references and bold links in replies, activity status check (E3.3, E3.4, E3.5) - #697
Conversation
…inks in replies (E3.3, E3.4) copyToClipboard is gone: reply code blocks, the whole-reply copy, the run card and the error reference all copy through copyCodeFromButton (Clipboard API, copy command, select-and-prompt), each with a visible Copied and a polite announcement. Bold and italic render their content through the inline renderer, so a link inside bold renders (isSafeUrl still checks every href); an image reference renders as its alt text with a pointer to the figure above when the message has a run figure, never an img. Tested: test-markdown.js (new cases), new test-widget-copy.js in the frontend-tests job, test-widget-run-card.js.
…sts (E3.5) The pending-reply line takes the accent dot and 12.5 px text of the run card's retry line; propose_plan reads Proposing plan... instead of Working.... No tool_composing event: tool_call (#542) already announces each call. Tested: new cases for Stop on a run, the line's style and the label in test-widget-activity-status.js.
Documentation only.
#494 audited against what #542 shippedLine numbers are on this branch (
|
Preview Deployment
This preview will be updated automatically when you push new commits. |
…xt, never as an address or stray markup (#666); tested with bun frontend/test-markdown.js
…beside the selected block, one timer per button, no false 'is selected', labelled fallback blocks; tested with bun frontend/test-widget-copy.js and tests/test_frontend
…nk; restore renderInlineMarkdown doc comment above the function (tested: test-markdown.js, frontend pytest)
|
Review round 2 outcomes (commit a2b4aa9):
Tested: |
|
PM verdict: all acceptance criteria are met and every review finding has an outcome. After a conflict in CHANGELOG.md (kept both entries) I merged develop into the branch (0cb424c); Lint, Test (3.11), Test (3.12), Frontend Tests and the preview deploy all pass, and the PR is CLEAN. The squash merge itself was not run by this agent (blocked by the permission layer), so the PR is ready to merge and #665, #666 and #494 still need closing after it lands; #597 and #598 stay open. |
# Conflicts: # CHANGELOG.md
Summary
Part of #648 (E3.3 to E3.5). The widget is one classic script, so every change is in
frontend/osa-chat-widget.jsand the copy path is a self-contained// BEGIN copy-text/// END copy-textblock.copyToClipboardis deleted.copyCodeFromButton(Clipboard API, thenexecCommand, then select-and-prompt) now serves reply code blocks, the whole-reply copy, the run card, the gate and the error-reference copy.Buttons with no
.osa-code-blockancestor get a visible "Copied" beside a check icon (the run card keeps "Copy code" to "Copied"), and the widget's existing status announcer says it, so no per-message live region is added to the conversation.A refused whole-reply copy shows the markdown source in a block under the reply and selects it, and a line names the keys.
Bold and italic render their content through the same inline renderer (code-span placeholders stay valid,
isSafeUrlstill checks every href; ajavascript:link in bold renders as text).renders as the escaped alt text in a span, never animg, never the address, with "(see the figure above)" only when the reply's message has a run figure.No
tool_composingevent:tool_call(Say what a pending reply is doing: searching, writing code, analyzing results #542) already does it (audit below).The status line is styled after board A3 (accent dot, 12.5 px text, 8 px gap, as
.osa-run-card-retry),propose_planreads "Proposing plan..." instead of "Working...", and Stop on a run is now covered by tests.docs/community-widget.md) andCHANGELOG.mdupdated.#597 and #598 stay open with a comment each (#597: PR #601 fixed the reply-content half; #598: needs the Python scanner without the bundle and a language on the fence).
Closes #665
Closes #666
Closes #494
Commands run
uv sync --all-extras --dev && bun installbun frontend/test-markdown.js(59 passed) andbun frontend/test-citation-markers.js(10 passed)bun frontend/test-widget-copy.js(63 passed, new, wired into thefrontend-testsjob),test-widget-run-card.js,test-widget-host-styles.js,test-widget-activity-status.js(322 checks passed)frontend/test-*.jssuite: all passuv run pytest tests/test_frontend tests/test_api/test_tool_call_streaming.py -q(184 passed)bun frontend/browser-harness/activity-status-check.mjsandrun-card-check.mjsin real Chrome: all checks passeduv run ruff check .anduv run ruff format --check .: cleanNotes for review
copyCodeFromButton; the error banner's copy button now shows "Copied" text as well as the check.