[feat] desktop D1: Desktop application

オープン
#363 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
electron, python, typescript

調査の方向性

Start by reading RFC #362, roadmap #265, and the referenced DeepSeek Harness Desktop shell/Host lifecycle. Inspect the existing Web UI and Python services entry points, then map the packaged runtime and acceptance checks across platforms. Done means a packaged build passes the stated launch-to-reopen workflow and records reproducible commands, tested OS versions, architectures, and remaining limits.

索引モデルが issue の本文から書いたものです。

説明

area:desktop

Goal and scope

D1 under RFC #362 and roadmap #265. Deliver an Electron desktop shell around the existing Web UI and Python business services, runnable without development tools.

Design

Follow the shell/Host lifecycle pattern in DeepSeek Harness Desktop, adapted to OpenDirector:

  • Host lifecycle: Electron owns a bundled Python API process bound to 127.0.0.1 on an OS-assigned port. A private control channel reports starting, ready, fatal and shutdown completion. Show actionable startup errors and log locations.
  • Authentication: Generate a fresh credential per Host launch, held by the main process and Host. Attach it only to requests for that Host; exclude it from renderer code, URLs, logs and shared localhost cookies.
  • UI and native operations: Reuse the Web UI in an isolated, sandboxed renderer with Node integration disabled. Expose validated preload IPC for file dialogs, saving and window operations. Keep business commands and validation in the shared Python services.
  • Runtime and data: Bundle Python, dependencies, FFmpeg and the built-in Agent runtime. Keep application resources read-only and separate from projects, credentials, logs and caches. Preserve existing data; desktop and CLI share project identity, locks and revisions.
  • Shutdown: Repeated launches focus the existing application. Distinguish closing a window from quitting. Inspect Agent, generation and export tasks before quitting, explain interruption risks, and coordinate child-process shutdown. A remote task is not cancelled merely because the application exits.
  • Export: Retain browser rendering initially and keep its renderer alive during export. Hiding a window does not imply export can continue after application exit.
  • CLI: Offer optional command installation, repair and removal using the bundled runtime. Preserve independent CLI installations and update command help.

D1 owns the shared shell, Host protocol, runtime layout and acceptance checks. Platform installation, signing and distribution belong to #364–#366; automatic updates belong to #367.

Acceptance criteria

  • From a packaged build on a clean environment: launch → Agent-assisted creation and tool use → edit → export → reopen, without system Python, Node, npm or FFmpeg.
  • Verify authenticated dynamic-port startup, startup failure, duplicate launches, project locks, task-aware shutdown and recovery diagnostics.
  • Validate the actual bundled executables and Python imports, including Agent startup; dependency files alone do not establish a working installation.
  • Verify Chinese and English interactions and errors; document tested OS versions, architectures and remaining limits.
  • Include reproducible build/check commands and actual packaged-build acceptance evidence in the implementation PR.
主要言語
TypeScript
スター
119
フォーク
16
平均マージ
16時間 13分
マージ済み PR(30日)
195

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ThinkFlowLab/OpenDirector のほかの issue

ThinkFlowLab/OpenDirector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。