Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
395 commits
Select commit Hold shift + click to select a range
ed7c47f
merge: reconcile plugin PR 16054 with current main
saphid Oct 19, 2026
3bef9c6
chore: resolve #16041 conflicts with current main
saphid Oct 19, 2026
9d6c95a
chore: resolve #16045 conflicts with current main
saphid Oct 19, 2026
8be6c1b
chore: resolve #16046 conflicts with current main
saphid Oct 19, 2026
39e3f91
merge: integrate current main into panel host
saphid Oct 20, 2026
116c5b8
merge: integrate current main and migrate device panel coverage
saphid Oct 20, 2026
9bdb7b9
merge: integrate current main into files panel
saphid Oct 20, 2026
304575b
fix(web): scope file open shortcuts to the active panel
saphid Oct 20, 2026
274afa0
merge: integrate current main into #16045
saphid Oct 20, 2026
c6559e0
fix(web): scope file open shortcuts to the active panel
saphid Oct 20, 2026
ed6ec16
test(web): supply the file browser composer action
saphid Oct 20, 2026
3e56355
merge: integrate current main into #16046
saphid Oct 20, 2026
7cca359
fix(web): scope file open shortcuts to the active panel
saphid Oct 20, 2026
8e387b4
test(web): supply the file browser composer action
saphid Oct 20, 2026
6461543
fix(mobile): keep browser controls below contribution statuses
saphid Oct 20, 2026
ed343be
merge: integrate current main into plugin host
saphid Oct 20, 2026
eb0af4b
fix(web): scope file open shortcuts to the active panel
saphid Oct 20, 2026
f492102
fix(mobile): keep browser controls below contribution statuses
saphid Oct 20, 2026
ecee4ae
fix(mobile): include status overlays in sent-message anchoring
saphid Oct 20, 2026
f109887
fix(web): retain device operation state for its starting thread
saphid Oct 20, 2026
9e66b60
test(server): provide plugins to config RPC integration
saphid Oct 20, 2026
614c4f2
merge: integrate current main into plugin events
saphid Oct 20, 2026
8f6fb77
fix(web): scope file open shortcuts to the active panel
saphid Oct 20, 2026
8ffd03d
fix(mobile): keep browser controls below contribution statuses
saphid Oct 20, 2026
8aac62c
fix(mobile): include status overlays in sent-message anchoring
saphid Oct 20, 2026
0e65401
test(server): provide plugins to config RPC integration
saphid Oct 20, 2026
0dcc5b4
merge: integrate current main into #16049
saphid Oct 20, 2026
176e6c3
fix(web): scope file open shortcuts to the active panel
saphid Oct 20, 2026
ae01f73
fix(mobile): keep browser controls below contribution statuses
saphid Oct 20, 2026
c57260e
fix(mobile): include status overlays in sent-message anchoring
saphid Oct 20, 2026
6adc994
test(server): provide plugins to config RPC integration
saphid Oct 20, 2026
7cc224b
test(server): verify plugin grants reach the composed runtime
saphid Oct 20, 2026
119b576
merge: integrate current main into #16050
saphid Oct 20, 2026
1e3f457
fix(web): scope file open shortcuts to the active panel
saphid Oct 20, 2026
41d7242
fix(mobile): keep browser controls below contribution statuses
saphid Oct 20, 2026
25c0e76
fix(mobile): include status overlays in sent-message anchoring
saphid Oct 20, 2026
fcc1b22
test(server): provide plugins to config RPC integration
saphid Oct 20, 2026
aeab172
fix(clients): follow current panel and mobile module APIs
saphid Oct 20, 2026
618802f
test(server): verify plugin grants reach the composed runtime
saphid Oct 20, 2026
89eeb46
test(server): provide plugin settings to config RPC integration
saphid Oct 20, 2026
59b93e0
fix(server): preserve live secret writers during temporary cleanup
saphid Oct 20, 2026
d39875f
merge: preserve plugin settings alongside current main
saphid Oct 20, 2026
3621e50
fix(clients): preserve current panel tests and detail tabs
saphid Oct 20, 2026
2b5d254
fix(plugins): bound source traversal and preserve cancellation ownership
saphid Oct 20, 2026
be0b931
fix(web): default the registered pull request detail tab
saphid Oct 20, 2026
0cabfdc
test(plugins): synchronize the first persisted cursor reconciliation
saphid Oct 20, 2026
3e3282b
test(plugins): seed the persisted cursor timestamp
saphid Oct 20, 2026
a8a475b
style(plugins): name the event quarantine effect
saphid Oct 20, 2026
4ebc2b3
merge: propagate verified plugin settings repairs into actions
saphid Oct 20, 2026
127d23a
fix(clients): reject stale plugin actions and pin action subscriptions
saphid Oct 20, 2026
bd212ad
fix(mobile): validate the slash command trigger kind
saphid Oct 20, 2026
38b76c3
fix(runtime): retain the shared session pin for plugin action streams
saphid Oct 20, 2026
f48abd2
merge: preserve PR 15010 behavior on current main
saphid Oct 20, 2026
fadaff3
test(server): provide plugin actions at the config RPC boundary
saphid Oct 20, 2026
0ae5507
test(mobile): configure the plugin action hook environment
saphid Oct 20, 2026
0303f99
merge: retain plugin views and verified ancestor repairs
saphid Oct 20, 2026
c6db936
merge: propagate verified plugin repairs into npm installation
saphid Oct 20, 2026
cdaf638
merge: preserve panel host with current diff session behavior
saphid Oct 20, 2026
b006774
test(web): adapt current diff tests to the panel host
saphid Oct 20, 2026
1e261e2
merge: preserve device panel guards and current main test imports
saphid Oct 20, 2026
09aa8ca
merge: preserve files panels and current pull request identity
saphid Oct 20, 2026
f48f6d6
fix(web): import detail tab type from the panel store
saphid Oct 20, 2026
746f10d
fix(web): default registered pull request detail tab
saphid Oct 20, 2026
fecc4f1
merge: preserve contribution status and files regression coverage
saphid Oct 20, 2026
dd57467
merge: retain mobile status geometry with current panel foundations
saphid Oct 20, 2026
5665be2
merge: preserve plugin host and migrations after current main
saphid Oct 20, 2026
0e14003
fix(server): bound plugin source walks and protect supervisor handoffs
saphid Oct 20, 2026
b818ad5
merge: preserve plugin events and delegated completion transactions
saphid Oct 20, 2026
4876dfc
fix(server): reconcile persisted plugin event cursors
saphid Oct 20, 2026
5133ae4
refactor(server): keep event sink helpers under their operation spans
saphid Oct 20, 2026
08b7f23
merge: preserve plugin tool runtime and inherited event repairs
saphid Oct 20, 2026
edaf580
test(server): deduplicate runtime session import after main integration
saphid Oct 20, 2026
3ea0333
refactor(server): preserve plugin event sink operation tracing
saphid Oct 20, 2026
12ec158
refactor(server): preserve plugin event sink operation tracing
saphid Oct 20, 2026
d45572a
refactor(server): preserve plugin event sink operation tracing
saphid Oct 20, 2026
127fbab
refactor(server): preserve plugin event sink operation tracing
saphid Oct 20, 2026
4c09c75
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
5cebb0c
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
918e883
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
e3db3e6
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
52f6768
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
94e8e62
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
c043f6b
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
995e4fc
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
bf013c6
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
e41dec0
fix(web): match registry fixtures to available panels
saphid Oct 20, 2026
4a62560
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
1e830e8
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
3d4cb9b
fix(plugins): carry verified session and recovery repairs
saphid Oct 20, 2026
0b48776
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
65a86e0
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
a03587c
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
42bac51
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
2da00e3
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
55c8d53
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
54042f1
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
aaec5c3
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
04892a5
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
fa311c8
fix(web): supply the panel host in PR tab restoration test
saphid Oct 20, 2026
a7350b7
refactor(web): integrate panel host with main component boundaries
saphid Oct 23, 2026
192bc98
refactor(web): preserve device and terminal panels on current main
saphid Oct 23, 2026
040202c
fix(web): preserve scoped device operation errors across thread switches
saphid Oct 23, 2026
babbab1
refactor(web): integrate files and pull request panels with main
saphid Oct 23, 2026
eff86b0
chore(pi): integrate main while preserving extension statuses
saphid Oct 23, 2026
30dbe3f
chore(pi): preserve main blank-question validation in status stack
saphid Oct 23, 2026
c8294eb
chore(mobile): integrate main while preserving Pi status geometry
saphid Oct 23, 2026
29eca2a
fix(plugins): integrate main and preserve revocation and shutdown safety
saphid Oct 23, 2026
472b696
fix(plugins): integrate event feed with current persistence and outcomes
saphid Oct 23, 2026
aa0aefc
fix(plugins): integrate tool grants with current session lifecycle
saphid Oct 23, 2026
79ac3bc
fix(plugins): reconcile preview migrations and retain private setting…
saphid Oct 23, 2026
1d03951
fix(plugins): preserve actions across extracted composer entry points
saphid Oct 23, 2026
555e926
fix: integrate current main while preserving PR 15010 behavior
saphid Oct 23, 2026
938104f
fix(plugins): revoke cached views and preserve current panel and RPC …
saphid Oct 23, 2026
5997dd9
fix(plugins): integrate main and restore approved npm bytes safely
saphid Oct 23, 2026
9adbd79
test(web): repair side panel browser fixtures
saphid Oct 23, 2026
e5f5c41
test(web): keep panel loader assertion independent of test order
saphid Oct 23, 2026
4f2deed
test(web): keep side panel mocks at explicit runtime boundaries
saphid Oct 23, 2026
f5ba13c
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
e82f610
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
03a544e
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
7b3fcea
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
6433423
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
fa1404b
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
25f29b9
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
d3062cc
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
cf941d9
docs(plugins): describe persisted swap recovery accurately
saphid Oct 23, 2026
d95a5b7
docs(plugins): describe persisted swap recovery accurately
saphid Oct 23, 2026
7ad8af2
docs(plugins): describe persisted swap recovery accurately
saphid Oct 23, 2026
ab9055e
docs(plugins): describe persisted swap recovery accurately
saphid Oct 23, 2026
a8f4c62
docs(plugins): describe persisted swap recovery accurately
saphid Oct 23, 2026
2744149
docs(plugins): describe persisted swap recovery accurately
saphid Oct 23, 2026
83f31b0
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
753e629
fix(plugins): repair current CI fixtures and preserve scoped behavior
saphid Oct 23, 2026
c52345b
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
b1af53d
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
221c2c5
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
5665e03
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
87d37a3
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
50dbc1b
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
c6ddef4
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
3bc1b4c
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
78a6d79
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
0470917
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
480a0c4
fix(web): align lazy panel fixtures with current runtime contracts
saphid Oct 23, 2026
9c5651c
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
812bcf6
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
22002e4
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
ae72863
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
45d329b
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
a1c136e
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
f728641
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
f23aeac
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
b259d1e
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
bfe9bca
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
1ada22b
test(web): align plugin render lifecycle and available panel counters
saphid Oct 23, 2026
1182393
Merge remote-tracking branch 'origin/main' into ready/plugins-15010-2…
saphid Oct 31, 2026
6af59a7
Merge branch 'ready/plugins-15010-20261031' into ready/plugins-16038-…
saphid Oct 31, 2026
2ca4b4c
fix(web): adapt panel fixtures to current browser bridge and registry
saphid Oct 31, 2026
b2f7da8
fix(web): integrate current device and terminal behavior into panel host
saphid Oct 31, 2026
6898fd2
fix(web): integrate current file preview behavior into Files panel host
saphid Oct 31, 2026
fbb7a0f
test(web): retain current file-preview regressions through panel host
saphid Oct 31, 2026
27b43a3
fix(pi): preserve current provider and sharing behavior in status int…
saphid Oct 31, 2026
fd8bf13
fix(mobile): preserve current layout alongside Pi statuses
saphid Oct 31, 2026
4024f16
fix(plugins): integrate event feed with current orchestration and mig…
saphid Oct 31, 2026
a13adfa
fix(web): format migrated device fixtures and remove obsolete prop type
saphid Oct 31, 2026
cf7c376
fix(plugins): preserve MCP context and subagent credential boundaries
saphid Oct 31, 2026
edf44f9
fix(plugins): retain current secrets behavior and append settings mig…
saphid Oct 31, 2026
134cb43
test(web): adapt panel fixtures to current host and focus APIs
saphid Oct 31, 2026
94375a3
fix(plugins): integrate actions with current palette and linked envir…
saphid Oct 31, 2026
5c62ee3
test(web): preserve current entity and focus exports in panel fixtures
saphid Oct 31, 2026
2ca936d
test(web): inherit current Device and terminal fixtures
saphid Oct 31, 2026
35f6f3a
fix(plugins): retain current panel shortcuts and environment capabili…
saphid Oct 31, 2026
3f3f1be
fix(plugins): integrate updated stack beneath feat(server): install p…
saphid Oct 31, 2026
faf50a4
test(web): adapt terminal attachment fixture to session atoms
saphid Oct 31, 2026
cec9e9b
test(web): isolate breadcrumb fixtures from browser defaults and edit…
saphid Oct 31, 2026
4254cbd
fix(plugins): carry updated parent layer into #16045
saphid Oct 31, 2026
17e0646
test(web): follow moved source-control actions and primary environmen…
saphid Oct 31, 2026
74953e1
fix(plugins): carry updated parent layer into #16048
saphid Oct 31, 2026
50614e4
fix(plugins): carry updated parent layer into #16045
saphid Oct 31, 2026
132b358
fix(plugins): carry updated parent layer into #16046
saphid Oct 31, 2026
e069d44
test(plugins): cover preview ledgers against newer main migration slots
saphid Oct 31, 2026
39f8d29
fix(web): preserve scoped file actions and make panel readiness fixtu…
saphid Oct 31, 2026
a500f29
fix(plugins): carry updated parent layer into #16046
saphid Oct 31, 2026
08c76cf
fix(plugins): carry updated parent layer into #16048
saphid Oct 31, 2026
0b36b43
fix(pi): retain desktop contracts and current panel dependencies
saphid Oct 31, 2026
255d6aa
fix(plugins): carry updated parent layer into #16046
saphid Oct 31, 2026
b3047a4
fix(plugins): carry updated parent layer into #16048
saphid Oct 31, 2026
cccc834
fix(pi): align regression fixtures with current runtime services
saphid Oct 31, 2026
871a02e
fix(plugins): carry updated parent layer into #16046
saphid Oct 31, 2026
91c565d
fix(plugins): carry updated parent layer into #16048
saphid Oct 31, 2026
ca955aa
fix(pi): provide all runtime fixtures and scoped file insertion callb…
saphid Oct 31, 2026
580d1af
fix(plugins): carry updated parent layer into #16048
saphid Oct 31, 2026
bd935e0
refactor(mobile): keep status layout constraints concise
saphid Oct 31, 2026
6fe5de3
fix(plugins): carry updated parent layer into #16048
saphid Oct 31, 2026
397485d
fix(plugins): migrate preview ledgers after current main schema
saphid Oct 31, 2026
f589b1e
fix(plugins): carry updated parent layer into #16049
saphid Oct 31, 2026
a9fb7b0
fix(plugins): retain settings preview upgrade cases on current migrat…
saphid Oct 31, 2026
5aad8a2
fix(plugins): carry updated parent layer into #16051
saphid Oct 31, 2026
498e967
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
4f28602
fix(plugins): carry updated parent layer into #16054
saphid Oct 31, 2026
502200c
fix(plugins): align event runtime with current layers and Effect conv…
saphid Oct 31, 2026
d6a613f
fix(plugins): carry updated parent layer into #16049
saphid Oct 31, 2026
d3071ec
fix(plugins): carry updated parent layer into #16050
saphid Oct 31, 2026
f2af4d4
fix(plugins): carry updated parent layer into #16051
saphid Oct 31, 2026
b271162
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
1bcfdd9
fix(plugins): retain npm transactions and current management locking
saphid Oct 31, 2026
5ce70b7
fix(plugins): include tool services in the current context budget
saphid Oct 31, 2026
e3e24ed
fix(plugins): carry updated parent layer into #16050
saphid Oct 31, 2026
5a710a5
fix(plugins): carry updated parent layer into #16051
saphid Oct 31, 2026
16811d6
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
56afefc
fix(plugins): carry updated parent layer into #16054
saphid Oct 31, 2026
4215861
refactor(plugins): keep API constraints concise
saphid Oct 31, 2026
6c42067
refactor(plugins): keep API constraints concise
saphid Oct 31, 2026
f252bbe
refactor(plugins): retain settings lock within its named Effect function
saphid Oct 31, 2026
43d023e
fix(plugins): carry updated parent layer into #16051
saphid Oct 31, 2026
32a2a74
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
72b2de2
refactor(plugins): keep API constraints concise
saphid Oct 31, 2026
08e0ac9
refactor(plugins): keep API constraints concise
saphid Oct 31, 2026
27c6da1
fix(plugins): align host call functions and IPC fixture with checks
saphid Oct 31, 2026
c53a344
fix(plugins): carry updated parent layer into #16051
saphid Oct 31, 2026
58eeaa5
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
f3e7bfc
fix(plugins): carry updated parent layer into #16054
saphid Oct 31, 2026
07e6602
refactor(plugins): keep API constraints concise
saphid Oct 31, 2026
66d47b7
refactor(plugins): keep action constraints and formatting current
saphid Oct 31, 2026
9fbbef6
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
7d066d7
fix(plugins): carry updated parent layer into #16054
saphid Oct 31, 2026
21b6cfe
fix(plugins): integrate current palette imports and session fixtures
saphid Oct 31, 2026
8ef5ef5
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
d7b4390
fix(plugins): carry updated parent layer into #16054
saphid Oct 31, 2026
0695c8a
fix(plugins): use current environment subscriptions and composer fixt…
saphid Oct 31, 2026
d512025
fix(plugins): carry updated parent layer into #16053
saphid Oct 31, 2026
ad018ff
fix(plugins): carry updated parent layer into #16054
saphid Oct 31, 2026
7cd341d
style(plugins): format view isolation constraints
saphid Oct 31, 2026
6703b10
fix(plugins): align view lifecycle and RPC test fixtures
saphid Oct 31, 2026
0fba174
fix(plugins): preserve side chats alongside registered plugin panels
saphid Oct 31, 2026
b8021ea
fix(plugins): update panel labels and session fixtures with side chats
saphid Oct 31, 2026
7219112
fix(plugins): carry updated parent layer into #16054
saphid Oct 31, 2026
1657277
fix(plugins): name locked npm methods and update checkpoint fixtures
saphid Oct 31, 2026
e5c2b03
fix(plugins): keep inline actions after side-chat integration
saphid Oct 31, 2026
bc6685c
fix(plugins): keep npm mutation locks in named service functions
saphid Oct 31, 2026
5643879
Merge main into Device panel and refresh terminal fixture
saphid Oct 31, 2026
16ce06a
fix(web): preserve side chats in Files panel integration
saphid Oct 31, 2026
9ae02bf
fix(pi): integrate current panels and repair status fixtures
saphid Oct 31, 2026
1c4932d
fix(plugins): integrate project organization and cover slot 76 previews
saphid Oct 31, 2026
42c773f
fix(plugins): reconcile previews around project organization migration
saphid Oct 31, 2026
5d6ab0f
Merge commit '2359643cffa6ba9ee84d6f2694b935de54a8013e' into ready/pa…
saphid Oct 31, 2026
959ca11
fix(plugins): preserve project organization in npm plugin layer
saphid Oct 31, 2026
5f4fd67
fix(plugins): carry validated schema, secret and frame safeguards
saphid Oct 31, 2026
2f8b12c
Merge commit '79f1fadfc6020b820d541ca4691d2feebb15dd1b' into ready/pa…
saphid Oct 31, 2026
55a3db3
fix(plugins): enforce agent modes and harden inherited view reads
saphid Oct 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions apps/desktop/src/window/DesktopWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import * as ElectronApp from "../electron/ElectronApp.ts";
import * as DesktopRendererHistory from "../telemetry/DesktopRendererHistory.ts";
import { makeQuitShortcutHandler } from "./QuitHold.ts";
import { copyContextMenuImage } from "./ContextMenuImage.ts";
import { shouldVetoViewFrameNavigation } from "./pluginViewNavigation.ts";

const TITLEBAR_HEIGHT = 40;
// Match --workspace-topbar-height in apps/web/src/index.css; native macOS buttons stay 14 points at any zoom.
Expand Down Expand Up @@ -626,6 +627,30 @@ export const make = Effect.gen(function* () {
void runPromise(electronShell.openExternal(url));
}
});
// Plugin views may not navigate themselves; see pluginViewNavigation.ts.
window.webContents.on("will-frame-navigate", (event) => {
if (event.isMainFrame) return;
if (
!shouldVetoViewFrameNavigation({
url: event.url,
frame: event.frame,
initiator: event.initiator,
mainFrame: window.webContents.mainFrame,
})
)
return;
event.preventDefault();
// Only where it tried to go: a path or query can carry the view's data.
const target = URL.parse(event.url);
void runPromise(
logWindowInfo(
"refused a plugin view navigation",
target === null
? { protocol: "invalid" }
: { protocol: target.protocol, host: target.host },
),
);
});

const quitShortcutHandler = makeQuitShortcutHandler({
platform: environment.platform,
Expand Down
84 changes: 84 additions & 0 deletions apps/desktop/src/window/pluginViewNavigation.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import { describe, expect, it } from "vite-plus/test";

import { type NavigationFrame, shouldVetoViewFrameNavigation } from "./pluginViewNavigation.ts";

const frame = (
frameToken: string,
url: string,
origin: string,
parent: NavigationFrame | null,
name = "",
): NavigationFrame => ({ frameToken, url, origin, parent, name });

const app = frame("app", "t3code-dev://app/", "t3code-dev://app", null);
const view = frame("view", "about:srcdoc", "null", app, "t3-plugin-view");
const wrapper = frame("wrapper", "about:srcdoc", "null", app, "t3-plugin-view");
const wrappedView = frame("inner", "about:srcdoc", "null", wrapper);

describe("shouldVetoViewFrameNavigation", () => {
it("refuses a view navigating itself, including through a policy wrapper", () => {
for (const target of [view, wrappedView]) {
for (const url of ["about:blank", "http://127.0.0.1:7391/page.html", "data:text/html,x"]) {
expect(
shouldVetoViewFrameNavigation({ url, frame: target, initiator: target, mainFrame: app }),
).toBe(true);
}
}
});

it("refuses a navigation with no known initiator", () => {
expect(
shouldVetoViewFrameNavigation({
url: "http://127.0.0.1:7391/redirect",
frame: view,
initiator: null,
mainFrame: app,
}),
).toBe(true);
});

it("lets the app mount, wrap and dispose views", () => {
const fresh = frame("fresh", "about:blank", "t3code-dev://app", app);
expect(
shouldVetoViewFrameNavigation({
url: "about:srcdoc",
frame: fresh,
initiator: app,
mainFrame: app,
}),
).toBe(false);
const freshInner = frame("fresh-inner", "about:blank", "null", wrapper);
expect(
shouldVetoViewFrameNavigation({
url: "about:srcdoc",
frame: freshInner,
initiator: wrapper,
mainFrame: app,
}),
).toBe(false);
expect(
shouldVetoViewFrameNavigation({
url: "about:blank",
frame: view,
initiator: app,
mainFrame: app,
}),
).toBe(false);
});

it("leaves frames outside views alone", () => {
const other = frame("other", "https://example.com/", "https://example.com", app);
const font = frame("font", "about:srcdoc", "null", app);
const fontChild = frame("font-child", "about:srcdoc", "null", font);
for (const target of [other, font, fontChild]) {
expect(
shouldVetoViewFrameNavigation({
url: "https://example.com/next",
frame: target,
initiator: target,
mainFrame: app,
}),
).toBe(false);
}
});
});
27 changes: 27 additions & 0 deletions apps/desktop/src/window/pluginViewNavigation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// A document's CSP cannot stop frame navigation; Electron vetoes isolated-subtree navigation unless the main frame starts it.
// Allow about:srcdoc mounting; wrapper CSP blocks data: navigation and ping liveness detects about:blank.

export interface NavigationFrame {
readonly url: string;
readonly origin: string;
readonly frameToken: string;
readonly name: string;
readonly parent: NavigationFrame | null;
}

const isViewDocument = (frame: NavigationFrame) =>
frame.name === "t3-plugin-view" && frame.url === "about:srcdoc" && frame.origin === "null";

export function shouldVetoViewFrameNavigation(input: {
readonly url: string;
readonly frame: NavigationFrame | null;
readonly initiator: NavigationFrame | null | undefined;
readonly mainFrame: NavigationFrame;
}): boolean {
let insideView = false;
for (let frame = input.frame; frame !== null; frame = frame.parent) {
if (isViewDocument(frame)) insideView = true;
}
if (!insideView || input.url === "about:srcdoc") return false;
return input.initiator?.frameToken !== input.mainFrame.frameToken;
}
36 changes: 35 additions & 1 deletion apps/mobile/src/features/keyboard/CommandPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import {
type EnvironmentThreadSearchMatch,
type ShownOrder,
} from "@t3tools/client-runtime/state/thread-search";
import { isListedThreadLineage, THREAD_JUMP_KEYBINDING_COMMANDS } from "@t3tools/contracts";
import {
AuthOrchestrationOperateScope,
isListedThreadLineage,
THREAD_JUMP_KEYBINDING_COMMANDS,
} from "@t3tools/contracts";
import {
foldSearchQuery,
PALETTE_MESSAGE_LIMIT,
Expand Down Expand Up @@ -53,6 +57,8 @@ import { requestThreadMessageJump } from "../threads/threadMessageJump";
import { threadEnvironment } from "../../state/threads";
import { useAtomCommand } from "../../state/use-atom-command";
import { serverEnvironment } from "../../state/server";
import { runPluginAction, usePluginActions } from "../../state/plugin-actions";
import { useEnvironmentScope } from "../../state/session";
import { useWorkspaceEnvironments } from "../../state/workspace";
import { useSavedRemoteConnections } from "../../state/use-remote-environment-registry";
import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
Expand All @@ -62,6 +68,7 @@ import { useStartTriage } from "../triage/useStartTriage";
import { useNewTaskFlow } from "../threads/new-task-flow-provider";
import { useActiveNewTask } from "../../state/active-new-task";
import {
buildPluginActionPaletteItems,
filterCommandPaletteItems,
nextPaletteIndex,
type CommandPaletteItem,
Expand Down Expand Up @@ -102,6 +109,7 @@ const ACTION_ICONS: Record<string, AppSymbolName> = {

function itemIcon(item: CommandPaletteItem): AppSymbolName {
if (item.kind === "thread") return "text.bubble";
if (item.key.startsWith("plugin-action:")) return "cube";
return ACTION_ICONS[item.key] ?? "ellipsis";
}

Expand Down Expand Up @@ -231,6 +239,17 @@ export function CommandPalette(props: {
const activeThread = useThreadShell(activeThreadRef);
const visitThread = useAtomCommand(threadEnvironment.visit, { reportFailure: false });
const environments = useWorkspaceEnvironments();
// Plugin actions belong to the open thread's environment, else the first connected one.
const pluginActionEnvironmentId =
activeThreadRef?.environmentId ??
environments.find((environment) => environment.connectionState === "connected")
?.environmentId ??
null;
const pluginActions = usePluginActions(pluginActionEnvironmentId);
const canRunPluginActions = useEnvironmentScope(
pluginActionEnvironmentId,
AuthOrchestrationOperateScope,
);
const { savedConnectionsById } = useSavedRemoteConnections();
const [query, setQuery] = useState("");
// Ranking is relative to when the palette opened, so rows do not reorder as time passes.
Expand Down Expand Up @@ -401,6 +420,18 @@ export function CommandPalette(props: {
})),
);
}
if (pluginActionEnvironmentId !== null) {
actions.push(
...buildPluginActionPaletteItems({
actions: pluginActions,
canOperate: canRunPluginActions,
environmentId: pluginActionEnvironmentId,
threadId: activeThread?.id ?? null,
projectId: activeThread?.projectId ?? null,
runAction: (input) => void runPluginAction(input),
}),
);
}
const openProjects = projects.filter((project) => project.archivedAt == null);
const projectItems: CommandPaletteItem[] = [
...openProjects.filter((project) => project.pinnedAt != null),
Expand Down Expand Up @@ -467,6 +498,9 @@ export function CommandPalette(props: {
environments.length,
canTriage,
navigation,
canRunPluginActions,
pluginActionEnvironmentId,
pluginActions,
projects,
runCommand,
savedConnectionsById,
Expand Down
90 changes: 88 additions & 2 deletions apps/mobile/src/features/keyboard/commandPaletteItems.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import { describe, expect, it } from "vite-plus/test";
import {
EnvironmentId,
PluginActionId,
ProjectId,
ThreadId,
type PluginAction,
} from "@t3tools/contracts";
import { describe, expect, it, vi } from "vite-plus/test";

import { filterCommandPaletteItems, type CommandPaletteItem } from "./commandPaletteItems";
import {
buildPluginActionPaletteItems,
filterCommandPaletteItems,
type CommandPaletteItem,
} from "./commandPaletteItems";

const NOW = Date.UTC(2026, 9, 23);

Expand Down Expand Up @@ -54,3 +65,78 @@ describe("filterCommandPaletteItems", () => {
expect(filterCommandPaletteItems(items, "> layout", ["siva:one"], NOW)).toEqual([]);
});
});
describe("buildPluginActionPaletteItems", () => {
const environmentId = EnvironmentId.make("environment-1");
const thread = {
environmentId,
threadId: ThreadId.make("thread-1"),
projectId: ProjectId.make("project-1"),
};
const deploy: PluginAction = {
id: PluginActionId.make("installation-1:1:deploy"),
pluginId: "acme.deploy",
pluginName: "Deploy",
name: "deploy",
title: "Deploy this branch",
target: "thread",
placements: ["command-palette"],
};
const refresh: PluginAction = {
...deploy,
id: PluginActionId.make("installation-1:1:refresh"),
name: "refresh",
title: "Refresh caches",
target: "environment",
};

it("runs an offered action in the open thread's environment", () => {
const runAction = vi.fn();
const offered = buildPluginActionPaletteItems({
actions: [deploy],
canOperate: true,
...thread,
runAction,
});
expect(offered.map((item) => item.title)).toEqual(["Deploy this branch"]);

offered[0]?.run();

expect(runAction).toHaveBeenCalledWith({
environmentId: thread.environmentId,
action: deploy,
target: { _tag: "thread", threadId: thread.threadId },
});
});

it("offers environment actions when no thread is open", () => {
const runAction = vi.fn();
const offered = buildPluginActionPaletteItems({
actions: [deploy, refresh],
canOperate: true,
environmentId,
threadId: null,
projectId: null,
runAction,
});
expect(offered.map((item) => item.title)).toEqual(["Refresh caches"]);

offered[0]?.run();

expect(runAction).toHaveBeenCalledWith({
environmentId,
action: refresh,
target: { _tag: "environment" },
});
});

it("offers nothing to a connection that cannot operate the environment", () => {
expect(
buildPluginActionPaletteItems({
actions: [deploy],
canOperate: false,
...thread,
runAction: vi.fn(),
}),
).toEqual([]);
});
});
42 changes: 42 additions & 0 deletions apps/mobile/src/features/keyboard/commandPaletteItems.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import { pluginActionLabels, pluginActionsAt } from "@t3tools/client-runtime/state/pluginActions";
import type {
EnvironmentId,
PluginAction,
PluginActionTarget,
ProjectId,
ThreadId,
} from "@t3tools/contracts";
import type { EnvironmentProject } from "@t3tools/client-runtime/state/shell";
import {
foldSearchQuery,
Expand Down Expand Up @@ -106,3 +114,37 @@ export function filterCommandPaletteItems(
export function nextPaletteIndex(index: number, direction: -1 | 1, count: number) {
return count === 0 ? 0 : (index + direction + count) % count;
}

/**
* The palette plugin actions of one environment, for the open thread and its
* project when there is one. Running one needs `orchestration:operate`, so a
* connection without it is offered none.
*/
export function buildPluginActionPaletteItems(input: {
readonly actions: ReadonlyArray<PluginAction>;
readonly canOperate: boolean;
readonly environmentId: EnvironmentId;
readonly threadId: ThreadId | null;
readonly projectId: ProjectId | null;
readonly runAction: (input: {
readonly environmentId: EnvironmentId;
readonly action: PluginAction;
readonly target: PluginActionTarget;
}) => void;
}): CommandPaletteItem[] {
if (!input.canOperate) return [];
const { environmentId } = input;
const entries = pluginActionsAt(input.actions, "command-palette", {
threadId: input.threadId,
projectId: input.projectId,
});
const labels = pluginActionLabels(entries.map((entry) => entry.action));
return entries.map(({ action, target }, index) => ({
key: `plugin-action:${action.id}`,
kind: "action",
title: labels[index] ?? action.title,
detail: action.description ?? action.pluginName,
searchTerms: [action.name, action.pluginName, "plugin"],
run: () => input.runAction({ environmentId, action, target }),
}));
}
Loading
Loading