feat(panel): add worker hot-reload, sticky bridge lease, custom token combos, trimmed model IDs, and adaptive popover width

- Isolate SidecarApp /api/* backend runtime inside a hot-swappable Worker thread (sidecar-worker.mjs) with 3s disk-drift detection and queued request handoff so live plugin updates never drop the host-assigned SidecarApp port
- Persist and reuse sticky loopback bridge port/token leases across bridge-daemon and worker reloads, pre-bind the bridge server on boot, allow /api/cache/rebuild on the bridge, and self-heal poisoned CDP fallback states back to HTTP
- Add billing-aligned In / Out / Cache (tokens_io_cache) preset with per-segment USD hover breakdown and custom format DSL (tokens_custom + stepTokenComboFormat, e.g. context:new:cache, in:out:cache)
- Add 3-way model name format (short / upstream / upstream_compact) stripping gemini-, claude-, and gpt- prefixes while protecting compaction suffixes from ellipsis truncation
- Add adaptive content-fit popover width (auto up to viewport bounds on wide step tables) alongside custom fixed width (440-1080 px)
This commit is contained in:
fish
2026-11-16 16:55:56 +09:00
parent cd841b55cf
commit 3b36ade911
33 changed files with 3124 additions and 381 deletions
+27
View File
@@ -49,6 +49,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'fmt.resetMins': 'Resets in {m}m',
'fmt.selectTime': 'Select time',
'fmt.unknownModel': 'Unknown model',
'fmt.compactionSuffix': '·compact',
'fmt.mainAgent': 'Main Agent',
'fmt.mainBadge': 'Main',
'fmt.subAgent': 'Subagent',
@@ -251,6 +252,21 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'steps.badgeBackAll': 'Click to return to All Agents',
'steps.badgeFilterAgent': 'Click to filter {agent} (Ctrl/Shift-click to multi-select)',
'steps.ctxTitle': 'Context {ctx} · Thinking {think} · Reply {resp}',
'steps.ioCacheTitle': 'New In {inPart} · Out {outPart} · Cache Read {cachePart}',
'steps.tokSeg.context.th': 'Ctx',
'steps.tokSeg.context.tip': 'Context',
'steps.tokSeg.in.th': 'In',
'steps.tokSeg.in.tip': 'New In',
'steps.tokSeg.out.th': 'Out',
'steps.tokSeg.out.tip': 'Output',
'steps.tokSeg.cache.th': 'Cache',
'steps.tokSeg.cache.tip': 'Cache Read',
'steps.tokSeg.think.th': 'Think',
'steps.tokSeg.think.tip': 'Thinking',
'steps.tokSeg.reply.th': 'Reply',
'steps.tokSeg.reply.tip': 'Reply',
'steps.tokSeg.total.th': 'Total',
'steps.tokSeg.total.tip': 'Total',
'steps.modelCallsShare': '{calls} calls · {pct}%',
'steps.modelCallsOnly': '{calls} calls',
'steps.modelsSummaryPrefix': '{count} models · ',
@@ -276,6 +292,9 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'stepCol.duration.opt': 'Total Duration (s)',
'stepCol.tokens_combo.th': 'Ctx / Think / Reply',
'stepCol.tokens_combo.opt': 'Ctx / Think / Reply (Combo)',
'stepCol.tokens_io_cache.th': 'In / Out / Cache',
'stepCol.tokens_io_cache.opt': 'In / Out / Cache (Combo)',
'stepCol.tokens_custom.opt': 'Custom Combo ({fmt})',
'stepCol.input_tokens.th': 'Input',
'stepCol.input_tokens.opt': 'New Input Tokens',
'stepCol.cache_tokens.th': 'CacheTok',
@@ -412,6 +431,10 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.str.mountDual': 'Dual Mount (Titlebar + Sidebar)',
'settings.str.mountComposer': 'Composer Mount (Input Box + Sidebar)',
'settings.str.mountSidebar': 'Sidebar Only',
'settings.str.popoverWidthLabel': 'Popover Width',
'settings.str.popoverWidthAuto': 'Auto Fit',
'settings.str.popoverWidthCustom': 'Custom',
'settings.str.popoverWidthHint': 'Auto Fit widens wide tables like Step Records to avoid horizontal scroll; Custom accepts 440–1080 px',
'settings.str.multiToggle': 'Active Sessions Pill',
'settings.str.cliCapsuleToggle': 'CLI Bottom Capsule',
'settings.str.show': 'Show',
@@ -438,6 +461,9 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.str.stepTurnRailToggle': 'Turn Rail & Preview',
'settings.str.stepAgentBadgeToggle': 'Main/Sub Agent Badge',
'settings.str.stepSpeedColorToggle': 'Speed Multi-Color',
'settings.str.stepTokenComboLabel': 'Custom Token Combo Format',
'settings.str.stepTokenComboPlaceholder': 'e.g. context:new:cache or in:out:cache',
'settings.str.stepTokenComboHint': 'Tokens: context, in/new, out, cache, think, reply, total — separated by : or / (1–4 items)',
'settings.str.stepsColsLabel': '"Steps" Visible Columns (Left → Right, min 2, draggable)',
'settings.str.addStepCol': 'Add Column ({count}/{max})',
'settings.slot.dragHint': 'Drag up or down to reorder',
@@ -456,6 +482,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.oth.modelFormat': 'Model Name Format',
'settings.oth.modelShort': 'Short Alias (e.g. argon-4-high)',
'settings.oth.modelUpstream': 'Raw Upstream ID (e.g. gemini-3.8-flash-n)',
'settings.oth.modelUpstreamCompact': 'Trimmed Raw ID (hide gemini- / claude- / gpt-)',
'settings.oth.orchFormat': 'Orchestrator Series ID',
'settings.oth.orchCompact': 'Compact Alias (e.g. orchestrator-argon)',
'settings.oth.orchFull': 'Full Upstream ID (e.g. gemini-pro-orchestrator)',