Plank help · updated 2026-11-19
Interactive HTML dashboards
How HTML files in a Plank workspace can run scripts, open files in any of your workspaces, open a chat, move around the app, and talk to the agent — via plank:* postMessage and the @plank-button header.
Agents: fetch the raw markdown of this page at /en/help/html-buttons.md
Interactive HTML dashboards
HTML files in a Plank workspace render inside a sandboxed iframe. The page talks to Plank with window.parent.postMessage. Everything it can say:
| Message | What it does |
|---|---|
plank:send-chat-message | Starts a new chat and sends your text — after the person allows it (see When Plank asks first). |
plank:insert-chat-text | Puts your text in the chat box without sending it, so the person can edit first. |
plank:open-chat | Opens one of the person's existing chats, by id. |
plank:open-file | Opens a file — in this workspace, or in another one they belong to. |
plank:open-surface | Sends them to Files, Schedules, Skills, Sources, Credentials, Tables, Agents, Activity or Chats. |
plank:run-script | Runs a workspace script that has opted in with a @plank-button header — after the person allows it. |
plank:navigate / plank:navigate-back | Moves between pages inside your own dashboard — see Multi-page dashboards. |
And the messages Plank sends to your page: plank:set-theme, plank:set-lang, plank:set-base, plank:script-result.
This page covers all of them and the @plank-button opt-in that gates direct script execution.
When to use which command
| Command | Use it when |
|---|---|
plank:send-chat-message | The action benefits from the agent narrating the result (errors, edge cases, "I noticed X"). |
plank:run-script | The script is deterministic, the dashboard owns the success/failure UI, and the user wants instant feedback without a chat round-trip. |
plank:open-file | Linking from one dashboard to another file in the workspace. The file opens on its own — no chat beside it — with a line underneath that starts one about it. On the desktop it opens in the same tab, and a «‹» link at the top of the file (e.g. «‹ dashboard.html») goes back to your dashboard; add newTab: true to open it in a new tab beside it instead. |
You can use both plank:run-script and plank:send-chat-message on the same dashboard. A "Sync" button might run directly; a "Resolve mismatches" button might drop into chat.
The postMessage shapes
// Send to chat — the agent receives 'text' as if the user typed it.
// This always opens a FRESH chat (each button begins its own self-contained
// task), rather than appending to whatever chat is currently open.
window.parent.postMessage(
{ type: "plank:send-chat-message", text: "Run the weekly tender report" },
"*",
);
// Open another file in the file tab.
window.parent.postMessage(
{ type: "plank:open-file", path: "reports/q4.md" },
"*",
);
// Run a workspace script directly. The path is workspace-relative and
// must live under scripts/ (see "Script paths are workspace-relative"
// and "Opting a script into @plank-button" below).
window.parent.postMessage(
{ type: "plank:run-script", path: "scripts/google/gmail/sync.py" },
"*",
);
Script paths are workspace-relative
The path you send with plank:run-script is relative to the workspace root and must live under scripts/ — for example scripts/local/tender-sync-server.py. Don't send an absolute path like /spaces/your-workspace/scripts/sync.py or /home/coder/…; the runner rejects it with a 400 before the script ever runs.
The path has to match this shape:
- starts with
scripts/ - ends in
.py,.ts, or.sh - contains no
..segments
You never reference the container's mount path yourself — Plank resolves scripts/… against your active workspace for you.
Sending the person somewhere in Plank
// Open a file. Relative paths resolve inside the workspace this page is in.
window.parent.postMessage({ type: "plank:open-file", path: "reports/q4.md" }, "*");
// Open a file in ANOTHER workspace the person belongs to. `me/pins` gives you
// both halves — pass them together, or the file opens in the wrong space.
window.parent.postMessage(
{ type: "plank:open-file", path: pin.vmPath, workspaceId: pin.workspaceId },
"*",
);
// Open one of their chats.
window.parent.postMessage({ type: "plank:open-chat", sessionId: chat.sessionId }, "*");
// Send them to a section of the app.
window.parent.postMessage({ type: "plank:open-surface", name: "schedules" }, "*");
// Open a file in a NEW TAB on the desktop, keeping this page in its own tab —
// whatever key the person holds.
window.parent.postMessage({ type: "plank:open-file", path: "reports/q4.pdf", newTab: true }, "*");
The path. Write it relative to the workspace root, as plain UTF-8 text — Договоры/2026/Договор аренды №5.pdf, exactly as the file is named: no ./ in front, no URL-encoding (%20, %D0…), no ../. Plank tidies the harmless variants (a leading ./, a doubled or trailing /, percent-encoding, file:///, a #section or ?query after the file name) before it decides, but a link that relies on that is a link you will one day debug. + is a literal plus, not a space. A path that steps out with .., contains a backslash or a control character, or starts with // is refused in every spelling.
When a link is refused, a red line above the page says why — one reason each:
| What the line says | Why | Fix |
|---|---|---|
| «This page's link is malformed and can't be opened: «…»» — with the path it sent | The path is not one Plank can open (.., a backslash, outside /spaces and /workspace, empty) | Rewrite the link by the rule above |
| «That file is in a workspace you aren't a member of.» | workspaceId names a workspace this person is not in | Only link to workspaces from me/pins for this person |
| «This page's link names a different workspace than the one it opens in, so it was not opened.» | /spaces/<slug>/… names another space than workspaceId (or this page's own space) | Pass path and workspaceId from the same pin, or use a relative path |
| «Open a workspace first — …» | No workspace is open to resolve the link against | Open the page from inside a workspace |
Tabs. On the desktop a file opened from your page replaces it in the same tab, and the «‹» at the top of the file comes back to your page. newTab: true opens a new tab beside it instead (only the value true counts). A Ctrl/Cmd-click or a middle click on anything that sends plank:open-file opens a new tab by itself — you do not need to read the keys — and so does one on a link to another .html page of yours. Pass newTab: true only to open a new tab on a plain click. A file already open in another tab switches to that tab. On the phone there are no tabs, and newTab is ignored.
What Plank refuses, and why your page will occasionally seem to do nothing:
- A
workspaceIdthe person is not a member of is refused. So is a path that names one workspace while the id names another — pass the pair from the same row. - A path containing
..,//, a backslash or a control character is refused. Paths are workspace-relative (reports/q4.md) or absolute under/spaces/<slug>/or/workspace/. plank:open-chatis checked against the person's own chats. The one case it refuses outright is a chat in a workspace they can no longer open; a chat that has been deleted opens and tells them so in the transcript, because nothing in Plank can tell those two apart from the outside.plank:open-surfacetakes one of exactly these names:chats,files,skills,sources,access(Credentials),tables,schedules,agents,activity.integrations— the old name of Sources — still opens Sources, so a dashboard written before the rename keeps working; usesourcesin new ones.homeandsearchare not sections and are refused.- A dashboard the person has navigated away from can still run in the background, and Plank ignores everything on this list from it — scripts, chats, files, sections and chat text. Only the page on screen can act on their behalf. Your own
plank:navigatestill works, so a page finishing a load off screen is not broken.
Talking to the agent instead of doing it yourself
// Send it now — a self-contained task with its own new chat.
window.parent.postMessage({ type: "plank:send-chat-message", text: "Run the weekly tender report" }, "*");
// Or put it in the box and let them edit it first.
window.parent.postMessage({ type: "plank:insert-chat-text", text: "Измени мою главную: " }, "*");
Use insert-chat-text when the person is expected to finish the sentence — the Home page's «Настроить главную» button does exactly this. Use send-chat-message when the button IS the whole request.
When Plank asks first
A page is something an agent wrote, so Plank does not let it act on your behalf unseen:
plank:send-chat-messageandplank:run-scriptshow a question above the page — the text that will be sent, or the script and its arguments — with Allow, Always allow on this page and Decline. «Always» is remembered for you, this page and (for a script) that one script.- To take an «always» back: Settings → Security → Always allowed on pages lists every one you gave, in every space — the page, what it may do and since when — with Revoke. After revoking, the page asks again before its next action. You only ever see your own answers there, never another member's.
- Buttons you already used keep working without a question: a script this page already ran in this space before the question existed runs as before.
- Declining a run still answers the page: it gets
plank:script-resultwithexitCode: -1andstderr: "declined", so re-enable the button on any non-zero exit code. plank:insert-chat-textis never asked — it only fills the chat box; nothing is sent until the person presses send.
What a page can reach
- Its own folder and its own space's tables (
apps/<table>) through the signed link Plank gives it. Not other spaces' tables (apps/~<id>/…is refused in the viewer), and not the person'sme/*lists — except on the Home page, which readsme/*. - No other internet address, except Google Fonts (stylesheets and font files), the 2GIS map widget, and Instagram/Facebook image CDNs for images. A
fetch,<img>or<script>pointing anywhere else is blocked by the page's security policy. Put the data the page needs into a table or a file with a script instead. - Links that leave the page (
target="_blank", another site,mailto:,tel:) open in a new browser tab through Plank. In a script, usewindow.plank.openExternal(url)instead ofwindow.open— pop-ups from the page itself are blocked. - Nothing of Plank itself. The page has no cookies, no
localStorage/sessionStorageand no access towindow.parentbeyondpostMessage— reading any of them throws. In the web app it may also be served from a separate domain, so do not readlocation.href,document.referrerorwindow.originfor anything: usewindow.plank.paramsfor this page's parameters and keep state in variables, a table or a file.
Images and other assets
To show an image stored in your workspace, reference it by a path relative to the HTML file. Plank loads it for you through a short-lived signed link — no setup, no exposed credentials:
<img src="chart.png" /> <!-- same folder as the dashboard -->
<img src="images/q4.png" /> <!-- a subfolder -->
<img src="../shared/logo.png" /> <!-- up one level -->
Paths resolve against the folder the dashboard lives in, not the workspace root. A leading slash is treated the same way: src="/chart.png" loads chart.png from the dashboard's own folder, not from the workspace root. Keep asset paths relative to where the HTML file sits.
External and inline images are left untouched and load as written:
- Full URLs —
https://… - Data URIs —
data:image/png;base64,… - Object URLs —
blob:… - Protocol-relative —
//host/img.png
The same resolution applies to the other assets a dashboard loads from the workspace: stylesheets (<link href>), scripts (<script src>), a video poster, a CSS background. If you set your own <base href> in the page, Plank steps back and respects it — your paths resolve against your base instead. The signed link refreshes automatically while the dashboard is open (it lasts about five minutes), so you never manage it.
Two path rules — don't mix them up. An image
srcis relative to the HTML file's folder. Aplank:run-scriptpath(above) is relative to the workspace root and must start withscripts/. Different systems resolve them.
Multi-page dashboards
A relative link to another .html file beside your page just works: Plank intercepts the click, loads the file through the same permission check as everything else, and shows a back arrow above the frame.
<a href="details.html?id=42">Open details</a>
Do it from code with the same effect, and go back the same way:
window.plank.navigate("details.html?id=42");
window.plank.back();
The query string arrives as the page's own ?id=42. Plank resolves the target relative to the folder your page is in and ignores any path your message claims to be calling from — a page cannot reach outside its own folder by asking nicely.
Unlike everything in Sending the person somewhere in Plank, navigation keeps working in a dashboard the person has navigated away from: it only moves that page around inside itself, and blocking it would break a page that finishes loading off screen.
Mobile (React Native WebView) fallback
On mobile, the iframe is a React Native WebView rather than a browser iframe. The same code works in both with one extra line:
const msg = { type: "plank:run-script", path: "scripts/google/gmail/sync.py" };
if (window.ReactNativeWebView) {
window.ReactNativeWebView.postMessage(JSON.stringify(msg));
} else {
window.parent.postMessage(msg, "*");
}
Opting a script into @plank-button
The plank:run-script API only accepts scripts that have explicitly opted in via a @plank-button header. This is the security perimeter — without the header, the API returns 403.
Add this to the top of the script (# for Python/Shell, // for TypeScript/JavaScript):
# @plank-button
# label: Sync Gmail → Tender Sheet
# … rest of your script
label is optional and falls back to the script's filename. In v1 there is no per-caller scoping — any HTML in the workspace may call any opted-in script. Per-caller globs are tracked as a follow-up.
Passing arguments (one button per row)
A dashboard that renders a table usually wants a button on every row — "Archive this ticket", "Re-run this order" — all calling the same script, each telling it which record was clicked. Declare the parameters in the header and send values with the message.
1. Declare the parameters
Add an args: line listing the parameter names, in order:
# scripts/backlog/archive.py
# @plank-button
# label: Archive ticket
# args: code, reason
import sys
code = sys.argv[1] if len(sys.argv) > 1 else ""
reason = sys.argv[2] if len(sys.argv) > 2 else ""
A script without an args: line accepts no arguments. Sending some returns a 400 rather than silently dropping them — so a script written before you needed arguments can't be fed input it isn't expecting. Up to 8 parameters; names are lowercase letters, digits and underscores, starting with a letter.
2. Send the values
Either shape works. Named is clearer and order-independent:
// Named — recommended
window.parent.postMessage({
type: "plank:run-script",
path: "scripts/backlog/archive.py",
args: { code: "PB27", reason: "duplicate" },
}, "*");
// Positional — same thing, in declaration order
window.parent.postMessage({
type: "plank:run-script",
path: "scripts/backlog/archive.py",
args: ["PB27", "duplicate"],
}, "*");
Both arrive as ordinary command-line arguments in the order you declared them. Omitted values arrive as empty strings and never shift the others — with args: { note: "urgent" } against args: code, action, note, the script still sees note as the third argument. So sys.argv[3] always means the same thing.
3. Wire it to a row
<tr>
<td>PB27</td>
<td>Ship the archive button</td>
<td><button data-code="PB27">Archive</button></td>
</tr>
<script>
document.querySelectorAll("button[data-code]").forEach((btn) => {
btn.addEventListener("click", () => {
btn.disabled = true;
const msg = {
type: "plank:run-script",
path: "scripts/backlog/archive.py",
args: { code: btn.dataset.code },
};
if (window.ReactNativeWebView) {
window.ReactNativeWebView.postMessage(JSON.stringify(msg));
} else {
window.parent.postMessage(msg, "*");
}
});
});
</script>
The result message echoes the args back, so you can tell which row finished — every row's button reports the same path:
window.addEventListener("message", (e) => {
if (e.data?.type !== "plank:script-result") return;
// Works for both shapes: named ({ code: "PB27" }) and positional (["PB27"]).
const sent = e.data.args;
const code = Array.isArray(sent) ? sent[0] : sent?.code;
if (!code) return;
// CSS.escape because a value may legitimately contain quotes (see below);
// interpolating one straight into a selector throws and would leave the
// button stuck disabled.
const row = document.querySelector(`button[data-code="${CSS.escape(code)}"]`);
if (row) row.disabled = false;
});
What the values may contain
Send strings. Numbers and booleans are rejected with a 400 — write { count: "27" }, not { count: 27 } — so a stray undefined can't reach your script looking like real data.
Each value can be up to 512 characters and may contain anything except control characters (tabs, newlines, NULs) and unpaired surrogates. Spaces, quotes, $, ;, backticks and accented or non-Latin text are all fine: Plank quotes every value so it reaches your script as a single argument exactly as you sent it, with no shell interpretation. O'Brien & Co arrives as O'Brien & Co.
Your script still owns meaning. Plank guarantees the value arrives intact; whether PB27 is a ticket that exists, and whether this user should be archiving it, is your script's job to check.
Repeat clicks, and how many can run at once
Clicking the same button twice within five seconds returns the first run's result instead of running again — once that first run has finished. If it is still running, the second click starts a second run. Scripts can take up to 90 seconds, so for anything that isn't safe to run twice (archiving, charging, sending), keep the button disabled until plank:script-result arrives rather than relying on the five-second window.
Clicking a different row always starts a real run — the arguments are part of what makes a click distinct, so row PB44 never shows you row PB27's result.
Three runs per workspace at a time. A fourth concurrent click returns 429 and the result comes back with exitCode: -1 and a "too many concurrent" message in stderr. On a long table, run the rows in sequence — wait for each plank:script-result before firing the next — rather than looping over every row at once:
async function runRows(codes) {
for (const code of codes) {
await new Promise((resolve) => {
const onDone = (e) => {
if (e.data?.type !== "plank:script-result") return;
window.removeEventListener("message", onDone);
resolve();
};
window.addEventListener("message", onDone);
window.parent.postMessage({
type: "plank:run-script",
path: "scripts/backlog/archive.py",
args: { code },
}, "*");
});
}
}
The script runs in the workspace container with the same credentials it has when the chat agent invokes it. It has a 90-second exec budget.
Receiving the result
When the script finishes, the parent posts plank:script-result back to the iframe. Listen for it to refresh the dashboard's data:
window.addEventListener("message", (e) => {
if (e.data?.type !== "plank:script-result") return;
if (e.data.path !== "scripts/google/gmail/sync.py") return;
if (e.data.exitCode === 0) {
location.reload();
} else {
console.error("sync failed:", e.data.stderr);
}
});
The reply shape:
{
type: "plank:script-result";
path: string; // the script path that ran
args?: unknown; // the args you sent, echoed back — use it to tell which row finished
exitCode: number; // 0 = success; 124 = exec timeout; non-zero = script error
stdout: string; // STATUS ONLY — truncated to 4 KB. See "Data-driven dashboards" below.
stderr: string; // truncated to 4 KB
}
stdoutis for status, not data. It is hard-capped at 4 KB and silently truncated past that —JSON.parse(stdout)on a real dataset will throw. To return data from a script to a dashboard, write it to a JSON file in the workspace andfetchit from the dashboard. The recipe is in the next section.
Data-driven dashboards (the JSON pattern)
The reliable pattern for a dashboard that displays data fetched from outside (Google Sheets, Gmail, Stripe, an internal API…):
- The script does the outside fetch and writes a JSON file next to the dashboard. It doesn't try to return the dataset through
stdout. - The dashboard
fetches that JSON file via a relative URL, with a cache-busting query string, and renders. - A button posts
plank:run-scriptto trigger a refresh. The dashboard listens forplank:script-resultand, on success, re-fetches the JSON file.
This works because the iframe's <base href> resolves relative URLs through a signed link Plank manages for you. No CORS, no token plumbing, no truncation cap.
No API key is involved in any of this, and you must never ask the person for one. The script runs inside the workspace with the credentials the chat agent already has. That holds whether it writes a JSON file (above) or writes straight into an app-data table — the table route authenticates as the container and re-checks membership and role on every call. A public API key is only for code on somebody's own laptop. If a refresh button seems to need a key, the script is reaching for the wrong door.
JSON file or app-data table? A file is right when the dashboard is the only reader and the dataset is rebuilt whole each time. A table is right when the data outlives one refresh, when the page should edit rows in place, or when something else — another dashboard, the agent, a report — reads the same rows. Both refresh from the same button.
The script side — write a JSON file
# scripts/local/sync-tenders.py
# @plank-button
# label: Sync Tenders from Google Sheets
from pathlib import Path
import json
ROOT = Path(__file__).resolve().parents[2] # workspace root
DASHBOARD_DATA = ROOT / "curated" / "tenders.json" # next to the dashboard
def fetch_from_google_sheets() -> dict:
# … your Sheets API call here …
return {"tenders": [...], "updatedAt": "2026-05-30T12:00:00Z"}
DASHBOARD_DATA.write_text(
json.dumps(fetch_from_google_sheets(), ensure_ascii=False),
encoding="utf-8",
)
print("ok") # status only — keep stdout tiny
Two conventions to follow:
- Co-locate the JSON file with the HTML. If
tenders-dashboard.htmllives incurated/, writecurated/tenders.json. The dashboard'sfetch('./tenders.json')then "just works". - Don't print the dataset.
print()only a short success/error string. Any data over 4 KB gets cut off and the dashboard will treat the run as failed.
The dashboard side — fetch and render
<!-- curated/tenders-dashboard.html -->
<button id="refresh">Refresh</button>
<div id="rows"></div>
<script>
const REFRESH_SCRIPT = "scripts/local/sync-tenders.py";
async function loadData() {
// Cache-bust each fetch — responses carry Cache-Control: max-age=300.
const res = await fetch("./tenders.json?t=" + Date.now(), { cache: "no-store" });
if (!res.ok) throw new Error("No data file yet — click Refresh");
const data = await res.json();
document.getElementById("rows").textContent = JSON.stringify(data, null, 2);
}
function runScript(path) {
const msg = { type: "plank:run-script", path };
if (window.ReactNativeWebView) {
window.ReactNativeWebView.postMessage(JSON.stringify(msg));
} else {
window.parent.postMessage(msg, "*");
}
}
window.addEventListener("message", (e) => {
if (e.data?.type !== "plank:script-result") return;
if (e.data.path !== REFRESH_SCRIPT) return;
if (e.data.exitCode === 0) {
loadData().catch((err) => console.error(err)); // re-fetch the file
} else {
console.error("sync failed:", e.data.stderr);
}
});
document.getElementById("refresh").addEventListener("click", () => runScript(REFRESH_SCRIPT));
// Cold open: fetch the cached file. If it doesn't exist yet, kick off the script.
loadData().catch(() => runScript(REFRESH_SCRIPT));
</script>
That's the entire pattern. The dashboard works on cold open (file already cached), works after a refresh (script writes the file, dashboard re-fetches), and works the very first time (file missing → script runs → result echo triggers fetch).
Four small things that make it "just work"
- Cache-bust the JSON fetch.
?t=${Date.now()}plus{ cache: 'no-store' }. The signed link carriesCache-Control: private, max-age=300— without busting, refreshes inside that 5-minute window serve the stale file. - Use relative paths, not absolute.
fetch('./tenders.json')resolves through Plank's signed link.fetch('/data')orfetch('/sync')will try to hit Plank's API host directly and fail — there are no such endpoints. - Don't try to return the dataset via stdout. Always write a file. Even 10 KB of JSON gets truncated; even valid JSON near the boundary may arrive broken.
- This pattern works inside Plank only. On a public page link (pages.plank.md) the page's scripts do not run, and live data covers app tables only — a page fed from a JSON file shows nothing there, whatever is switched on. If the page will be shared publicly, keep its data in an app table and read it with
fetch('apps/<table>'), or write a dated snapshot into the HTML before sharing (Sharing).
Python dependencies the script needs
If the script imports a library that isn't preinstalled (Google client libs, stripe, requests-oauthlib…), include a self-install fallback so it works on a fresh container. Use --break-system-packages, not --user — --user installs into ~/.local which often isn't on the system Python's path and the re-import will still fail:
try:
from google.auth.transport.requests import Request
from googleapiclient.discovery import build
except ModuleNotFoundError:
import subprocess, sys
subprocess.check_call([
sys.executable, "-m", "pip", "install", "--break-system-packages",
"google-api-python-client", "google-auth", "google-auth-oauthlib",
])
from google.auth.transport.requests import Request
from googleapiclient.discovery import build
For Node/TypeScript, run pnpm add <dep> inside the script via subprocess, or commit a package.json next to the script with its deps.
Buttons on the published page (pages.plank.md)
Everything above runs inside the Plank viewer. A page published with live data also runs its own scripts at its public address on pages.plank.md — but there it has no Plank session, so plank:run-script has nobody to answer it. To let members of the page's space press its buttons there, as themselves, include the page helper and add a sign-in button:
<script src="https://api.plank.md/public/page-sdk.js" data-plank-auto-login></script>
<!-- Every script this page may run, written out in full (the sign-in screen lists them):
scripts/loans/ui/repay.py scripts/loans/ui/close_day.py -->
<button data-plank-login data-plank-signed-out>Sign in with Plank</button>
<div data-plank-signed-in hidden>
<span data-plank-user></span> <button data-plank-logout>Sign out</button>
</div>
<script>
plank.ready.then(function (signedIn) { /* show the operations panel when true */ });
plank.run("scripts/loans/ui/repay.py", { contract: "A-17", amount: "1000" })
.then(function (r) { /* r.exitCode, r.stdout, r.stderr — same shape as plank:script-result */ })
.catch(function (e) { /* e.code: signed_out, script_not_in_grant, consent_revoked, … */ });
plank.read("ln_settings").then(function (rows) { /* this space's table, read as the member */ });
</script>
How it behaves:
- «Sign in with Plank» opens Plank. A signed-in member of the page's space (not a viewer) sees which page, which space and which scripts, and presses Allow; they come back to the page signed in. The permission lasts 24 hours: until then, signing in again (after a reload) is one click with no screen. Anyone else — a visitor, a member of another space — gets nothing and the page stays read-only.
data-plank-auto-login(optional) signs a member in on page load when they already allowed this page today — no click. Without it, the button is still one click. It sends every signed-out visitor through Plank and straight back, so use it on internal pages, not on public landing pages.- List every script path literally in the page (code or a comment). Only paths written out in the HTML can be allowed; a path built at runtime (
"scripts/" + name + ".py") is refused unless it is also written out. Each script still needs its@plank-buttonheader, and the same argument rules apply. plank.read(table)reads any table of this space as the member — the same data the page sees in the Plank viewer. Read-only; change data through scripts.- The page keeps the sign-in in memory only: a reload signs out (and
data-plank-auto-loginsigns back in). Sign out ends it, and so does revoking the share, turning off live data, removing the member, or revoking the page in Settings → Security → Pages with access — immediately. - A page shown inside a frame cannot sign in. Open it in its own tab.
Concurrency and abuse bounds
- 3 concurrent runs per workspace. A 4th rapid click returns busy; the user sees "Workspace busy — try again in a moment".
- 5-second per-script debounce. Clicking the same button twice fast returns the previous run's result instead of starting a new one.
- 90-second exec budget. Scripts that exceed it exit with code 124.
These bounds apply per workspace. They protect the workspace container from runaway dashboards; they do not affect other workspaces or the platform.
Forensic audit log
Every completed run writes a row to a per-workspace audit log (workspace + user + script path + caller HTML path + exit code + truncated stdout/stderr + timestamps). Workspace members can query their own workspace's audit; cross-workspace queries are blocked at the database level.
If a button "silently failed" — the dashboard didn't refresh, no toast — the audit log is the first thing to check.