claude-opencode-viewer 2.6.55 → 2.6.56

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/index-pc.html CHANGED
@@ -1786,6 +1786,11 @@
1786
1786
  document.getElementById('mode-label').textContent = '';
1787
1787
  }
1788
1788
  if (msg.running) {
1789
+ var mLabel = msg.mode === 'claude' ? 'Claude' : msg.mode === 'qoder' ? 'Qoder' : msg.mode === 'shell' ? 'Shell' : 'OpenCode';
1790
+ var initOv = document.getElementById('init-overlay');
1791
+ initOv.textContent = '正在启动 ' + mLabel + '...';
1792
+ initOv.classList.add('visible');
1793
+ waitingInitData = true;
1789
1794
  preloadData();
1790
1795
  }
1791
1796
  // 服务端无运行进程,显示启动对话框
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-opencode-viewer",
3
- "version": "2.6.55",
3
+ "version": "2.6.56",
4
4
  "description": "A unified terminal viewer for Claude Code and OpenCode with seamless switching",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -1284,7 +1284,7 @@ wssInst.on('connection', (ws, req) => {
1284
1284
  // 进程已退出时,自动重新启动(参考 cc-viewer 逻辑)
1285
1285
  // 模式切换/新建会话期间不触发 respawn
1286
1286
  // shell 模式不自动 respawn,避免用户输入 exit 后又被重新拉起
1287
- if (!currentProcess && !isSwitching && currentMode !== 'shell' && currentMode !== 'qoder') {
1287
+ if (!currentProcess && !isSwitching && currentMode !== 'shell') {
1288
1288
  try {
1289
1289
  LOG(`[respawn] 进程已退出,自动重新启动 ${currentMode}`);
1290
1290
  outputBuffer = '';