chore(release): v0.12.7
Issue for this PR
Release PR, so there is no issue. It promotes the v0.12.6..main payload to latest as v0.12.7: #1435, #1418, #1415, #1427, plus the CI-only #1440 and the test-only #1399.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
- Other: release
What does this PR do?
Four commits on top of main (340df361f1):
release: v0.12.7: the CHANGELOG entry and this release's adversarial tests (test/skill/release-v0.12.7-adversarial.test.ts, 28 tests). The entry opens with a heads-up for support: the start-screen workspace box is back, the skill list changes for every user, the agent may search workspace knowledge on its own, and the newserveroutes need no password unless one is set.fix(server): the trace viewer page may not call the server's API(release review, CTO).GET /altimate/trace/:sessionID/view(#1415) serves the viewer from the API's own origin, and a trace holds tool output and fetched pages. The response now carries a CSP that allows the page's inline script and styles but no requests (connect-src 'none'), form posts or base URL. The embedded viewer is never live, so it makes no requests of its own. The summary tab's rendering error is now escaped too.fix(traces): a trace containing <!--<script no longer renders the viewer empty(found by the adversarial tests). The viewer escaped only</in the trace JSON it embeds. Tool output with<!--<scriptand no-->after it leaves the HTML parser in a state where the script's own</script>no longer closes it, so no script ran. Every<is now<. This predates the release (the TUI's/tracesuses the same viewer).docs:thewarehouse-connectreconnect log lines (#1427) and theserveroutes for the IDE (#1415, #1435).
Release review: five reviewers (CTO, product, data engineer, tech lead, and a compliance officer at a customer) all said ship with notes, with no P0. Deferred findings are filed: #1451, #1452, #1453, #1454, #1455, #1456, #1457.
After merge: tag the merge commit v0.12.7 and push only the tag, which starts release.yml.
How did you verify your code works?
- Preflight
--stage preand--stage tagpassed (9/9 each). Typecheck and marker guard are clean. - Full opencode suite: 16,854 passed, 15 failed, all explained:
- 6 timeouts (
pty,plugin.loader.shared) under Docker load pass when run alone. - 6 MCP tests read the developer's own MCP config and pass with an isolated
HOME. - 3 are the existing
opencode runflake (about 1 run in 4, cf. #1340).
- 6 timeouts (
- Verdaccio sanity suite, local Docker, linux-arm64 build of 0.12.7: 68 passed, 0 failed, 10 skipped (8 need
ANTHROPIC_API_KEY, 1 is #1052 D14). pre-releasepassed and the darwin-arm64 binary reports0.12.7.- TUI on that binary in tmux, signed in, in three states (linked, unlinked, workspace service unreachable): the start-screen box renders, Ctrl+P opens the palette, Esc closes it, and the first Ctrl+C quits.
- Trace viewer under the new CSP, in Chromium on a real trace: every tab renders, Copy Summary works, no console warnings or CSP violations. A trace with
<!--<scriptrendered an empty page before the fix and renders fully after it. - Mutation checks: removing the CSP header, the
<escaping or theerr.messageescaping each fails a test. - CI's
dbt-tools E2Ejob has been red onmainsince 6 Oct (#1257).release.ymldoesn't depend on it.
Screenshots / recordings
N/A
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
š¤ Generated with Claude Code
https://claude.ai/code/session_011z8XLFXDGuywPteBesoZSU
Summary by cubic
Promotes main as v0.12.7, shipping workspace skills/knowledge preference, the post-link starter, opt-in learn auto-promotion, IDE trace routes, and Snowflake reconnect logging, with docs updated to match. Includes two trace-viewer fixes found in the release review: the page could call the server's own API as same-origin, and a trace containing <!--<script rendered the viewer empty. After merging, tag the merge commit v0.12.7 and push only the tag to start release.yml.
Bug Fixes
- The trace viewer response now carries a CSP that allows the page's inline script and styles but blocks requests, form posts, and base URLs.
- The viewer escapes every
<in the embedded trace JSON, not just</, so tool output like<!--<scriptcan no longer stop the viewer's script from running. - The summary tab's rendering error is now escaped too.
Summary by CodeRabbit
- New Features
- Added workspace guidance for skill and knowledge sources, a starter message after workspace linking, and optional automatic lesson promotion.
- Restored start-screen keybindings and documented IDE access to session traces.
- Bug Fixes
- Improved trace-viewer handling of embedded content and errors, with stricter browser security restrictions.
- Documentation
- Clarified skill-source precedence, workspace knowledge behavior, trace-route password requirements, and Snowflake reconnect logging details.