dsh-tidy-display 0.2.3 → 0.2.4-beta.5

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/lib/client.js CHANGED
@@ -43681,26 +43681,29 @@ ${trimmed}
43681
43681
  "turn-process"
43682
43682
  ]);
43683
43683
  const EXPECTED = {
43684
- actions: {
43684
+ actions: [{
43685
43685
  kind: "list",
43686
43686
  scope: "session"
43687
- },
43688
- tools: {
43687
+ }],
43688
+ tools: [{
43689
43689
  kind: "keyed",
43690
43690
  scope: "session"
43691
- },
43692
- tail: {
43691
+ }],
43692
+ tail: [{
43693
43693
  kind: "list",
43694
43694
  scope: "session"
43695
- },
43696
- nodes: {
43695
+ }, {
43696
+ kind: "chain",
43697
+ scope: "session"
43698
+ }],
43699
+ nodes: [{
43697
43700
  kind: "keyed",
43698
43701
  scope: "session"
43699
- },
43700
- images: {
43702
+ }],
43703
+ images: [{
43701
43704
  kind: "single",
43702
43705
  scope: "session"
43703
- }
43706
+ }]
43704
43707
  };
43705
43708
  /**
43706
43709
  * Reader already presents produced paths with its copy/reveal actions. RC2's
@@ -43732,10 +43735,16 @@ ${trimmed}
43732
43735
  return Object.fromEntries(Object.entries(OFFICIAL_SLOTS).map(([name, source]) => {
43733
43736
  const family = name;
43734
43737
  const spec = slots.spec(source);
43735
- if (spec && (spec.kind !== EXPECTED[family].kind || spec.scope !== EXPECTED[family].scope)) throw new Error(`Official slot contract changed: ${source} (${spec.kind}/${spec.scope})`);
43736
- return [officialSeat(family), spec ?? EXPECTED[family]];
43738
+ if (spec && !EXPECTED[family].some((expected) => expected.kind === spec.kind && expected.scope === spec.scope)) console.warn(`[dsh-tidy-display] official slot contract drift, binding live spec: ${source} (${spec.kind}/${spec.scope})`);
43739
+ if (family === "tail") boundTailKind = spec?.kind ?? EXPECTED[family][0].kind;
43740
+ return [officialSeat(family), spec ?? EXPECTED[family][0]];
43737
43741
  }));
43738
43742
  }
43743
+ /** tail 座位实测绑定的槽形(list=0.1.7+,chain=0.1.2–0.1.5)。渲染分发用。 */
43744
+ let boundTailKind;
43745
+ function tailSeatKind() {
43746
+ return boundTailKind ?? "list";
43747
+ }
43739
43748
  function translatedComponent(entry, names) {
43740
43749
  if (names.size === 0) return entry.component;
43741
43750
  const Original = entry.component;
@@ -43828,7 +43837,7 @@ ${trimmed}
43828
43837
  const spec = slots.spec(source);
43829
43838
  const target = officialSeat(family);
43830
43839
  const declared = slots.spec(target);
43831
- if (spec.kind !== declared?.kind || spec.scope !== declared.scope) throw new Error(`Official slot contract changed: ${source}`);
43840
+ if (spec.kind !== declared?.kind || spec.scope !== declared.scope) console.warn(`[dsh-tidy-display] official slot contract drift on mirror: ${source} (${spec.kind}/${spec.scope} vs ${declared?.kind ?? "none"}/${declared?.scope ?? "none"})`);
43832
43841
  return mirrorOfficialSlot(slots, source, target, `dsh-tidy-display.official.${family}`, family === "nodes" ? (entry) => !READER_NODES.has(entry.options.key ?? "") : void 0);
43833
43842
  }));
43834
43843
  }
@@ -43926,11 +43935,13 @@ ${trimmed}
43926
43935
  openFile: official.officialPreviewFile,
43927
43936
  readerProducedPaths: produced
43928
43937
  } : void 0;
43929
- return official && tailOwner ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
43938
+ if (!official || !tailOwner) return null;
43939
+ const render = tailSeatKind() === "chain" ? official.renderSlotChain ?? official.renderSlot : official.renderSlot;
43940
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
43930
43941
  "data-reader-official-tail": true,
43931
43942
  style: { display: "contents" },
43932
- children: official.renderSlot(OFFICIAL_SEATS.tail, tailOwner)
43933
- }) : null;
43943
+ children: render(OFFICIAL_SEATS.tail, tailOwner)
43944
+ });
43934
43945
  }
43935
43946
  //#endregion
43936
43947
  //#region src/client/motion.tsx
@@ -46310,14 +46321,22 @@ ${trimmed}
46310
46321
  }
46311
46322
  .tidychat-nav-tip-head { color: var(--tidychat-nav-tip-head, var(--dsw-alias-label-secondary, #666)) !important; font-size: 11px; margin-bottom: 2px; }
46312
46323
  /* 接管官方消息轨:官方 TurnNavigator 的类名是 CSS Module 产物(hash 随构建变化),
46313
- 双重锚定保证跨 hash 稳定;隐藏而非卸载(宿主 React 会还原被删节点)。 */
46324
+ 双重锚定保证跨 hash 稳定;隐藏而非卸载(宿主 React 会还原被删节点)。
46325
+ 恢复向规则:0.2.0 起宿主自带 @container (width<=900px) { frame: display:none },
46326
+ 接管关闭时若不显式压回,窄容器下官方轨被宿主自藏、用户只见本轨("开关无用"的
46327
+ 根因)。恢复锚定 frame 内的 _marks 子元素(TurnNavigator 模块表语义键,跨 hash
46328
+ 稳定),不会误伤宿主其他被响应式隐藏的组件。 */
46314
46329
  html[data-tidychat-hide-official-nav] [class*="_slot"]:has(> nav[class*="_frame"]),
46315
46330
  html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-natural-position"]) {
46316
46331
  display: none !important;
46317
46332
  }
46333
+ html:not([data-tidychat-hide-official-nav]) nav[class*="_frame"]:has([class*="_marks"]) {
46334
+ display: revert !important;
46335
+ }
46318
46336
  `;
46319
46337
  document.head.appendChild(style);
46320
46338
  }
46339
+ let takeoverOwners = 0;
46321
46340
  const findScrollContainer = () => document.querySelector("[data-conversation-scroll]");
46322
46341
  const scopedRows = (selector) => {
46323
46342
  const container = findScrollContainer();
@@ -46392,12 +46411,20 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
46392
46411
  function RailView({ enabled, side, style: railStyle, ring, hideOfficialNav, hasMore, loadOlder }) {
46393
46412
  ensureRailCss();
46394
46413
  react.useEffect(() => {
46395
- if (hideOfficialNav) document.documentElement.setAttribute("data-tidychat-hide-official-nav", "");
46396
- else document.documentElement.removeAttribute("data-tidychat-hide-official-nav");
46414
+ const owned = enabled && hideOfficialNav;
46415
+ if (owned) {
46416
+ takeoverOwners += 1;
46417
+ document.documentElement.setAttribute("data-tidychat-hide-official-nav", "");
46418
+ }
46397
46419
  return () => {
46398
- document.documentElement.removeAttribute("data-tidychat-hide-official-nav");
46420
+ if (!owned) return;
46421
+ takeoverOwners -= 1;
46422
+ if (takeoverOwners <= 0) {
46423
+ takeoverOwners = 0;
46424
+ document.documentElement.removeAttribute("data-tidychat-hide-official-nav");
46425
+ }
46399
46426
  };
46400
- }, [hideOfficialNav]);
46427
+ }, [enabled, hideOfficialNav]);
46401
46428
  const [pos, setPos] = react.useState(null);
46402
46429
  const [tip, setTip] = react.useState(null);
46403
46430
  const [hover, setHover] = react.useState(null);
@@ -47661,6 +47688,16 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
47661
47688
  function isNode(node, kind) {
47662
47689
  return node.kind === kind;
47663
47690
  }
47691
+ /**
47692
+ * pendingInteraction 的双代读取:0.1.7+ 注入 `useSessionStatus`,0.1.2–0.1.5
47693
+ * 同一能力叫 `useSessionPendingInteraction`(useSessionStatus 是它的改名)。
47694
+ * 两代都缺席时返回 undefined——等待交互的横幅不显示,渲染绝不因此中断
47695
+ * (useSessionStatus 缺失曾让 Reader paint 即崩、阅读视图整页空白,0.1.5 事故)。
47696
+ */
47697
+ function usePendingInteraction(props) {
47698
+ const hooks = props;
47699
+ return (props.useSessionStatus ?? hooks.useSessionPendingInteraction)?.((snapshot) => snapshot.get(props.sessionId)?.pendingInteraction);
47700
+ }
47664
47701
  function cleanErrorMessage(raw) {
47665
47702
  if (!raw) return "模型服务暂时无响应或连接中断,请稍后重试。";
47666
47703
  let str = raw.trim();
@@ -48047,6 +48084,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
48047
48084
  }
48048
48085
  if (isNode(node, "manual-compaction") || isNode(node, "compaction")) return null;
48049
48086
  if (node.kind === "context" || node.kind === "turn-tail" || node.kind === "system-prompt" || node.kind === "turn-process") return null;
48087
+ if (node.kind === "input-message") return null;
48050
48088
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OfficialNode, {
48051
48089
  ...render,
48052
48090
  node,
@@ -48326,7 +48364,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
48326
48364
  const snapshot = props.useChat((snapshot) => snapshot);
48327
48365
  const nodes = snapshot.nodes;
48328
48366
  const turn = group.turn === null ? void 0 : snapshot.timeline.turns.get(group.turn);
48329
- const interaction = props.useSessionStatus((snapshot) => snapshot.get(props.sessionId)?.pendingInteraction);
48367
+ const interaction = usePendingInteraction(props);
48330
48368
  const sessionRunning = props.useSession((snapshot) => snapshot.running);
48331
48369
  const boundary = (0, react.useMemo)(() => boundaryOf(turn), [turn]);
48332
48370
  const choiceKey = processChoiceKey(group.key, boundary);
@@ -48610,7 +48648,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
48610
48648
  const nodes = props.useChat((snapshot) => snapshot.nodes);
48611
48649
  const timeline = props.useChat((snapshot) => snapshot.timeline);
48612
48650
  const running = props.useSession((snapshot) => snapshot.running);
48613
- const pending = props.useSessionStatus((snapshot) => snapshot.get(props.sessionId)?.pendingInteraction);
48651
+ const pending = usePendingInteraction(props);
48614
48652
  const openError = props.useSession((snapshot) => snapshot.openError);
48615
48653
  const loading = props.useSession((snapshot) => snapshot.openState === "loading");
48616
48654
  const hasMore = props.useSession((snapshot) => snapshot.hasMore);
@@ -49006,7 +49044,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49006
49044
  foldStandard: "On",
49007
49045
  foldSummary: "Summary",
49008
49046
  railTitle: "Message rail",
49009
- railDescription: "On by default: a canvas navigation rail at the conversation edge — fish-eye hover with summaries, click to jump, current-turn highlight.",
49047
+ railDescription: "On by default: a canvas navigation rail at the conversation edge — fish-eye hover with summaries, click to jump, current-turn highlight. Off: no rail in the reading view; the conversation view returns to the official rail.",
49010
49048
  railSide: "Rail position",
49011
49049
  railSideLeft: "Left edge",
49012
49050
  railSideRight: "Right edge (mirrored)",
@@ -49016,7 +49054,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49016
49054
  railRingTitle: "Rail sheen",
49017
49055
  railRingDescription: "On by default (matches the store default): a soft white sheen laid beneath the current and hovered marks, keeping them readable over busy wallpapers.",
49018
49056
  takeoverTitle: "Take over the official rail",
49019
- takeoverDescription: "On by default: the official right-edge TurnNavigator is hidden (hidden, not unmounted) so this rail is the only one. Turn off to see both.",
49057
+ takeoverDescription: "On by default: in the conversation view this rail replaces the official right-edge TurnNavigator (hidden, not unmounted). Turn off to hand the conversation view back to the official rail — this rail yields there. The reading view always uses this rail. At narrow widths the harness auto-hides the official rail; this switch restores it when off.",
49020
49058
  colorBarTitle: "Mark color",
49021
49059
  colorAccentTitle: "Accent color",
49022
49060
  colorAuto: "Auto",
@@ -49045,7 +49083,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49045
49083
  foldStandard: "开启",
49046
49084
  foldSummary: "摘要",
49047
49085
  railTitle: "消息轨",
49048
- railDescription: "默认开启:会话区边缘的 canvas 导航轨——鱼眼悬停看摘要、点击跳转、当前轮高亮。",
49086
+ railDescription: "默认开启:会话区边缘的 canvas 导航轨——鱼眼悬停看摘要、点击跳转、当前轮高亮。关闭后:阅读视图无轨,对话视图回到官方轨。",
49049
49087
  railSide: "显示位置",
49050
49088
  railSideLeft: "左缘",
49051
49089
  railSideRight: "右缘(镜像)",
@@ -49055,7 +49093,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49055
49093
  railRingTitle: "外圈柔光",
49056
49094
  railRingDescription: "默认开启:在当前轮与悬停轮的标记底下垫一层白色柔光,复杂壁纸上也能看清标记。",
49057
49095
  takeoverTitle: "接管官方消息轨",
49058
- takeoverDescription: "默认开启:隐藏官方右缘 TurnNavigator(隐藏而非卸载),只保留本轨。关闭后两条轨并存。",
49096
+ takeoverDescription: "默认开启:对话视图由本轨替换官方右缘 TurnNavigator(隐藏而非卸载)。关闭后对话视图交还官方轨,本轨在对话视图让位;阅读视图始终用本轨。窄宽度下宿主会自藏官方轨,关闭本开关时会一并恢复。",
49059
49097
  colorBarTitle: "标记色",
49060
49098
  colorAccentTitle: "强调色",
49061
49099
  colorAuto: "自动",
@@ -49084,7 +49122,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49084
49122
  foldStandard: "Activé",
49085
49123
  foldSummary: "Résumé",
49086
49124
  railTitle: "Rail des messages",
49087
- railDescription: "Activé par défaut : un rail de navigation en canvas au bord de la conversation — survol fisheye avec résumés, clic pour rejoindre un tour, tour active mis en évidence.",
49125
+ railDescription: "Activé par défaut : un rail de navigation en canvas au bord de la conversation — survol fisheye avec résumés, clic pour rejoindre un tour, tour active mis en évidence. Désactivé : pas de rail en vue lecture ; la vue conversation revient au rail officiel.",
49088
49126
  railSide: "Position du rail",
49089
49127
  railSideLeft: "Bord gauche",
49090
49128
  railSideRight: "Bord droit (en miroir)",
@@ -49094,7 +49132,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49094
49132
  railRingTitle: "Halo du rail",
49095
49133
  railRingDescription: "Activé par défaut (conforme au réglage d’origine) : un doux halo blanc posé sous les repères actifs et survolés, pour rester lisibles sur les fonds d’écran chargés.",
49096
49134
  takeoverTitle: "Remplacer le rail officiel",
49097
- takeoverDescription: "Activé par défaut : le TurnNavigator officiel du bord droit est masqué (masqué, pas démonté) pour que ce rail reste le seul. Désactivez pour voir les deux.",
49135
+ takeoverDescription: "Activé par défaut : dans la vue de conversation, ce rail remplace le TurnNavigator officiel du bord droit (masqué, pas démonté). Désactivez pour rendre la vue de conversation au rail officiel — ce rail s’y efface. La vue de lecture utilise toujours ce rail. Aux petites largeurs le harnais masque le rail officiel de lui-même ; ce commutateur le restaure quand il est désactivé.",
49098
49136
  colorBarTitle: "Couleur des repères",
49099
49137
  colorAccentTitle: "Couleur d’accent",
49100
49138
  colorAuto: "Auto",
@@ -49123,7 +49161,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49123
49161
  foldStandard: "Ein",
49124
49162
  foldSummary: "Zusammenfassung",
49125
49163
  railTitle: "Nachrichtenleiste",
49126
- railDescription: "Standardmäßig ein: eine Navigationsleiste aus Canvas am Rand des Gesprächs — Fischaugen-Hover mit Zusammenfassungen, Klick zum Springen, Hervorhebung des aktuellen Durchgangs.",
49164
+ railDescription: "Standardmäßig ein: eine Navigationsleiste aus Canvas am Rand des Gesprächs — Fischaugen-Hover mit Zusammenfassungen, Klick zum Springen, Hervorhebung des aktuellen Durchgangs. Aus: keine Leiste in der Leseansicht; die Konversationsansicht kehrt zur offiziellen Leiste zurück.",
49127
49165
  railSide: "Position der Leiste",
49128
49166
  railSideLeft: "Linker Rand",
49129
49167
  railSideRight: "Rechter Rand (gespiegelt)",
@@ -49133,7 +49171,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49133
49171
  railRingTitle: "Sanfter Schimmer",
49134
49172
  railRingDescription: "Standardmäßig ein (entspricht dem Store-Standard): ein weicher weißer Schimmer unter der aktuellen und der überfahrenen Marke, damit beide vor bunten Hintergründen lesbar bleiben.",
49135
49173
  takeoverTitle: "Offizielle Leiste übernehmen",
49136
- takeoverDescription: "Standardmäßig ein: Der offizielle TurnNavigator am rechten Rand wird ausgeblendet (verborgen, nicht entfernt), damit nur diese Leiste übrig bleibt. Ausschalten, um beide zu sehen.",
49174
+ takeoverDescription: "Standardmäßig ein: In der Konversationsansicht ersetzt diese Leiste den offiziellen TurnNavigator am rechten Rand (verborgen, nicht entfernt). Ausschalten, um die Konversationsansicht an die offizielle Leiste zurückzugeben — diese Leiste weicht dort. Die Leseansicht nutzt immer diese Leiste. Bei schmalen Breiten verbirgt der Host die offizielle Leiste selbst; dieser Schalter stellt sie bei ausgeschaltetem Zustand wieder her.",
49137
49175
  colorBarTitle: "Markierungsfarbe",
49138
49176
  colorAccentTitle: "Akzentfarbe",
49139
49177
  colorAuto: "Auto",
@@ -49162,7 +49200,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49162
49200
  foldStandard: "On",
49163
49201
  foldSummary: "Riepilogo",
49164
49202
  railTitle: "Barra dei messaggi",
49165
- railDescription: "Attivo per impostazione predefinita: una barra di navigazione in canvas al bordo della conversazione — hover fisheye con riepiloghi, clic per saltare, turno corrente evidenziato.",
49203
+ railDescription: "Attivo per impostazione predefinita: una barra di navigazione in canvas al bordo della conversazione — hover fisheye con riepiloghi, clic per saltare, turno corrente evidenziato. Spenta: nessuna barra nella vista di lettura; la vista conversazione torna alla barra ufficiale.",
49166
49204
  railSide: "Posizione della barra",
49167
49205
  railSideLeft: "Bordo sinistro",
49168
49206
  railSideRight: "Bordo destro (specchiato)",
@@ -49172,7 +49210,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49172
49210
  railRingTitle: "Alone della barra",
49173
49211
  railRingDescription: "Attivo per impostazione predefinita (come il valore di origine): un delicato alone bianco sotto i segni correnti e puntati, per tenerli leggibili su sfondi molto carichi.",
49174
49212
  takeoverTitle: "Sostituisci la barra ufficiale",
49175
- takeoverDescription: "Attivo per impostazione predefinita: il TurnNavigator ufficiale sul bordo destro viene nascosto (nascosto, non smontato) così questa barra resta l’unica. Disattiva per vederle entrambe.",
49213
+ takeoverDescription: "Attivo per impostazione predefinita: nella vista conversazione questa barra sostituisce il TurnNavigator ufficiale sul bordo destro (nascosto, non smontato). Disattiva per restituire la vista conversazione alla barra ufficiale — questa barra cede lì. La vista di lettura usa sempre questa barra. Alle larghezze ridotte l’host nasconde da solo la barra ufficiale; questo interruttore la ripristina quando è disattivato.",
49176
49214
  colorBarTitle: "Colore dei segni",
49177
49215
  colorAccentTitle: "Colore d’accento",
49178
49216
  colorAuto: "Auto",
@@ -49201,7 +49239,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49201
49239
  foldStandard: "Вкл.",
49202
49240
  foldSummary: "Сводка",
49203
49241
  railTitle: "Дорожка сообщений",
49204
- railDescription: "По умолчанию включено: навигационная дорожка на canvas у края беседы — «рыбий глаз» при наведении со сводками, переход по клику, подсветка текущего хода.",
49242
+ railDescription: "По умолчанию включено: навигационная дорожка на canvas у края беседы — «рыбий глаз» при наведении со сводками, переход по клику, подсветка текущего хода. Выключено: в режиме чтения дорожек нет; режим беседы возвращается к штатной дорожке.",
49205
49243
  railSide: "Положение дорожки",
49206
49244
  railSideLeft: "Левый край",
49207
49245
  railSideRight: "Правый край (зеркально)",
@@ -49211,7 +49249,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49211
49249
  railRingTitle: "Ореол дорожки",
49212
49250
  railRingDescription: "По умолчанию включено (совпадает с исходным значением): мягкий белый ореол под текущей и подсвеченной отметками, чтобы их было видно на пёстрых обоях.",
49213
49251
  takeoverTitle: "Заменить штатную дорожку",
49214
- takeoverDescription: "По умолчанию включено: штатный TurnNavigator у правого края скрывается (именно скрывается, а не удаляется), чтобы осталась только эта дорожка. Выключите, чтобы видеть обе.",
49252
+ takeoverDescription: "По умолчанию включено: в режиме беседы эта дорожка заменяет штатный TurnNavigator у правого края (скрывается, а не удаляется). Выключите, чтобы вернуть режим беседы штатной дорожке — эта дорожка там уступает. Режим чтения всегда использует эту дорожку. На узкой ширине хост скрывает штатную дорожку сам; этот переключатель возвращает её, когда выключен.",
49215
49253
  colorBarTitle: "Цвет отметок",
49216
49254
  colorAccentTitle: "Акцентный цвет",
49217
49255
  colorAuto: "Авто",
@@ -49240,7 +49278,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49240
49278
  foldStandard: "Sí",
49241
49279
  foldSummary: "Resumen",
49242
49280
  railTitle: "Raíl de mensajes",
49243
- railDescription: "Activado por defecto: un raíl de navegación en canvas al borde de la conversación — hover ojo de pez con resúmenes, clic para saltar, turno actual resaltado.",
49281
+ railDescription: "Activado por defecto: un raíl de navegación en canvas al borde de la conversación — hover ojo de pez con resúmenes, clic para saltar, turno actual resaltado. Apagado: sin raíl en la vista de lectura; la vista de conversación vuelve al raíl oficial.",
49244
49282
  railSide: "Posición del raíl",
49245
49283
  railSideLeft: "Borde izquierdo",
49246
49284
  railSideRight: "Borde derecho (en espejo)",
@@ -49250,7 +49288,7 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
49250
49288
  railRingTitle: "Brillo del raíl",
49251
49289
  railRingDescription: "Activado por defecto (coincide con el valor de fábrica): un suave brillo blanco bajo las marcas actual y apuntada, para que sigan legibles sobre fondos con muchos detalles.",
49252
49290
  takeoverTitle: "Reemplazar el raíl oficial",
49253
- takeoverDescription: "Activado por defecto: el TurnNavigator oficial del borde derecho se oculta (oculto, no desmontado) para que este raíl sea el único. Desactívalo para ver ambos.",
49291
+ takeoverDescription: "Activado por defecto: en la vista de conversación este raíl sustituye al TurnNavigator oficial del borde derecho (oculto, no desmontado). Desactívalo para devolver la vista de conversación al raíl oficial — este raíl cede allí. La vista de lectura siempre usa este raíl. En anchos reducidos el anfitrión oculta el raíl oficial por sí mismo; este interruptor lo restaura cuando está apagado.",
49254
49292
  colorBarTitle: "Color de las marcas",
49255
49293
  colorAccentTitle: "Color de acento",
49256
49294
  colorAuto: "Auto",
@@ -50382,12 +50420,13 @@ html[data-tidychat-hide-official-nav] nav[class*="_frame"]:has([style*="--turn-n
50382
50420
  const snap = react.useSyncExternalStore(prefs.subscribe, () => prefs.getSnapshot());
50383
50421
  const loadEarlierPattern = /^(加载更早|Load earlier|Load older)/;
50384
50422
  const hasMore = [...document.querySelectorAll("button")].some((b) => loadEarlierPattern.test((b.textContent || "").trim()));
50423
+ const takeover = snap.hideOfficialNav !== false;
50385
50424
  return react.createElement(RailView, {
50386
- enabled: snap.railEnabled !== false,
50425
+ enabled: snap.railEnabled !== false && takeover,
50387
50426
  side: snap.railSide === "right" ? "right" : "left",
50388
50427
  style: snap.railStyle === "dot" ? "dot" : "bar",
50389
50428
  ring: snap.railRing === true,
50390
- hideOfficialNav: snap.hideOfficialNav !== false,
50429
+ hideOfficialNav: takeover,
50391
50430
  hasMore,
50392
50431
  loadOlder: () => {
50393
50432
  [...document.querySelectorAll("button")].find((b) => loadEarlierPattern.test((b.textContent || "").trim()))?.click();