chore: promote expbkmain to bkmain (Mattermost link badge + agent view fixes) - #147
Merged
Conversation
Serialize URL frames by normalized origin, remount through an empty committed state, and use Chromium credentialless storage without weakening the self-origin sandbox. Make every T3 HTML shell unframeable so redirected embeds cannot escape the sandbox. Cover exact fragment preservation, same-origin A-to-B-to-A DOM replacement, expanded handoffs, hosted and desktop framing headers, and browser fallback behavior. Written by GPT-5.6-Sol in T3 Code.
Keep the fake browser globals installed until React's development scheduler drains its queued Immediate. This prevents CI teardown from surfacing window-is-undefined errors after every assertion already passed. Written by GPT-5.6-Sol in T3 Code.
fix(web): isolate same-origin agent view lifecycles
fix(web): disable untruthful agent views
The Linear/Mattermost bridge binds a session to a Mattermost thread so a human can steer it from chat, but that binding lived only in the bridge's own database. Inside T3 the sidebar looked identical whether or not replies in chat were landing in the session. Adds `mattermostThreadUrl` to thread metadata, mirroring the existing `linearIssueUrl` tag end to end (contract, decider, both projectors, projection column via migration 1023, client reducer), and renders the Mattermost mark in the experimental sidebar's bottom-right lane beside the priority badge, owner avatar and provider icon. The badge is a labelled span rather than a link: it sits inside the row's button, where an anchor would be invalid HTML and would swallow row selection. Opening, changing and clearing the link live on the row's context menu, gated on the new `threadMattermostLink` capability so an older server shows none of it. The bridge writes the field through the `thread.meta.update` command it already speaks; no new T3 endpoint. Model: Claude Opus 5 (1M context), harness: T3 Code.
feat(web): mark sessions linked to a Mattermost chat
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
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.
Promotes
expbkmain(fe0622e17) tobkmain. Everything here has been running on expbkt3.What ships
Two independent pieces of work:
1. Mattermost link badge (#146)
Sessions bound to a Mattermost conversation now show the Mattermost mark in the experimental sidebar's bottom-right lane, beside the priority badge, owner avatar and provider icon. Adds
mattermostThreadUrlto thread metadata, mirroring the existinglinearIssueUrltag end to end (contract, decider, both projectors, projection column via migration 1023, client reducer), gated on a newthreadMattermostLinkcapability.The bridge side is already merged and deployed (
t3-linear-bridge#55, live onbkt3automations.dev.beknown.liveatff82942), so the badge lights up automatically on new Mattermost binds once this lands.2. Agent view fixes (#145 and precursors)
fix(web): disable untruthful agent views,fix(web): isolate same-origin agent view lifecycles, and a test drain fix. Not my work — carried along by the promotion.Migration note
Migration 1023 adds a nullable
mattermost_thread_urlcolumn toprojection_threads. It ran cleanly against expbkt3's live database (243 MB, real data) with no backfill and no rewrite — it is a single additiveALTER TABLE ... ADD COLUMN.Verification
deployed-shamatched the merge commit, service active, migration row present in the live DB, badge code present in the served bundle.Deploy impact
Merging this restarts
t3-bkmain.serviceand ends every in-flight session on bkt3. Requested explicitly.Model: Claude Opus 5 (1M context), harness: T3 Code.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.