ai_co_discuss 0.2.23 → 0.2.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
package/web/app.js CHANGED
@@ -1568,6 +1568,14 @@ async function load_launch_settings() {
1568
1568
  finally { refresh_launch_recoveries(); render_launch_settings(); publish_view(); }
1569
1569
  }
1570
1570
 
1571
+ /** Re-check the local connection and explain when nothing has been connected yet. */
1572
+ async function retry_launch_connection() {
1573
+ await load_launch_settings();
1574
+ if (state.launch.available || state.launch.error) return;
1575
+ state.launch.error = "尚未检测到本机连接,请先在运行 AI 的电脑上执行上方命令并完成网页授权。";
1576
+ publish_view();
1577
+ }
1578
+
1571
1579
  /** Read saved choices for the active room without using drafts or delaying discussion refreshes. */
1572
1580
  async function load_room_models() {
1573
1581
  const room = state.room;
@@ -2960,7 +2968,7 @@ async function execute_view_action(name, value) {
2960
2968
  take_floor: () => change_floor("take"), return_floor: () => change_floor("return"),
2961
2969
  copy_online: () => copy_context(), copy_cli: () => copy_context("cli"), copy_background,
2962
2970
  choose_runtime, export_runtime, download_member_access, copy_member_join, pause_runtime, check_limits, pause_discussion, restart_discussion, force_close, conclude_discussion,
2963
- save_launch_defaults, launch_current_room, resume_launch, discard_launch, retry_launch_connection: load_launch_settings,
2971
+ save_launch_defaults, launch_current_room, resume_launch, discard_launch, retry_launch_connection, check_launch_connection: load_launch_settings,
2964
2972
  load_room_configuration, save_room_configuration, interrupt_member, change_member, invite_member, interrupt_free, set_proxy, copy_online_notice,
2965
2973
  prepare_brainstorm, return_conclusion, convert_suggestion,
2966
2974
  copy_reading: () => copy_text(`${location.origin}/r/${state.room.id}`), copy: copy_text };