Move theme menu to the header and group present chrome under it.

Also align Token stats with the settings shell and drop leftover lifecycle toggle wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-03 00:58:25 +08:00
co-authored by Cursor
parent 92b2d88738
commit 770a8fdcdc
10 changed files with 1119 additions and 369 deletions
+11 -1
View File
@@ -267,10 +267,20 @@ export function renderPresentShellHtml(packet, esc, opts = {}) {
typeof tweaks.show_suggested_actions === "boolean"
? tweaks.show_suggested_actions
: ACTIONS_DEFAULT_ON.has(shell);
const tone =
let tone =
typeof tweaks.tone_chrome === "string" && tweaks.tone_chrome.trim()
? tweaks.tone_chrome.trim()
: "default";
if (opts.applyUserChrome !== false) {
try {
const pref = document.documentElement.getAttribute("data-present-chrome");
if (pref === "messenger" || pref === "book" || pref === "terminal") {
tone = pref;
}
} catch {
/* ignore */
}
}
const blocks = packet.blocks ?? {};
const regions = shellDefaultRegions(shell);