@tutti-os/workbench-surface 0.0.57 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -462,6 +462,15 @@ interface WorkbenchHostLaunchResult {
|
|
|
462
462
|
instanceId: string;
|
|
463
463
|
instanceKey?: string | null;
|
|
464
464
|
launchSource?: string | null;
|
|
465
|
+
/**
|
|
466
|
+
* When true, skip the "cascade-same-type-centered" re-center/resize step
|
|
467
|
+
* for a node that already exists (see openLaunchResult in session.ts).
|
|
468
|
+
* Set this when the launch is re-focusing a specific already-open
|
|
469
|
+
* instance (e.g. reusing the window for a known conversation/session)
|
|
470
|
+
* rather than a fresh/generic open, so the user's current window size and
|
|
471
|
+
* position are preserved instead of being reset to the default frame.
|
|
472
|
+
*/
|
|
473
|
+
preserveExistingNodeFrame?: boolean;
|
|
465
474
|
reuseDockEntryNode?: boolean;
|
|
466
475
|
sizeConstraints?: WorkbenchNodeSizeConstraints | null;
|
|
467
476
|
title?: string;
|
package/dist/index.js
CHANGED
|
@@ -6599,7 +6599,7 @@ var WorkbenchHostSessionController = class {
|
|
|
6599
6599
|
existing.id,
|
|
6600
6600
|
launchResult.sizeConstraints ?? definition.sizeConstraints ?? null
|
|
6601
6601
|
);
|
|
6602
|
-
if (exactExisting && launchResult.framePolicy === "cascade-same-type-centered") {
|
|
6602
|
+
if (exactExisting && !launchResult.preserveExistingNodeFrame && launchResult.framePolicy === "cascade-same-type-centered") {
|
|
6603
6603
|
const currentState = this.controller.getSnapshot();
|
|
6604
6604
|
const resolvedFrame2 = resolveWorkbenchLaunchedHostNodeFrame({
|
|
6605
6605
|
currentState: {
|