diff --git a/PLAN.md b/PLAN.md index cb0928d..92aa64a 100644 --- a/PLAN.md +++ b/PLAN.md @@ -5,6 +5,15 @@ --- +## 0.7.4 已知项目只算 OpenChamber 的项目列表(分支 `flutter`) + +| 项 | 结果 | +| --- | --- | +| 列表 | 0.7.3 用 `app.projects` 做过滤,但这个列表同时包含 OpenCode 发现的所有目录(`~/.config/pitchfork`、`~/Downloads` 等),所以那些端口仍被当成「已知项目」显示。现在只把带 OpenChamber 设置记录的项目(`metaId` 非空)加上当前项目当作已知工作区,和网页端的项目列表一致;没有目录的 announced 端口(9090)仍显示。手机列表恢复为网页端看到的 8080、9090 | +| 版本 | **0.7.4(code 704)** | + +--- + ## 0.7.3 开发服务器列表与网页端同一套过滤(分支 `flutter`) | 项 | 结果 | diff --git a/README.md b/README.md index 6f7dc49..ae4fce4 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Android first. This branch (`flutter`) is a framework evaluation: the same feature set as the earlier Asuka/Go and MyGo attempts, reimplemented in Flutter to compare mobile UI maturity. -Status: 0.7.3 — servers (passwordless / password login, HTTP/HTTPS and +Status: 0.7.4 — servers (passwordless / password login, HTTP/HTTPS and SOCKS5/socks5h proxy, self-signed certificates and pinning, or a pairing link over the OpenChamber private relay with end-to-end encryption; the pairing link is pasted or scanned with the camera), session list with search and live diff --git a/lib/screens/browser_panel.dart b/lib/screens/browser_panel.dart index d66111b..296e4dd 100644 --- a/lib/screens/browser_panel.dart +++ b/lib/screens/browser_panel.dart @@ -188,8 +188,12 @@ class _BrowserPanelState extends State { // ports" too. final known = [ if (widget.directory.isNotEmpty) widget.directory, + // Only OpenChamber's own project list counts as work, as on the web; + // an OpenCode project that happens to exist under ~/Downloads or a + // tool's config directory is still outside the user's projects. for (final project in widget.app.projects) - if (project.canonical.isNotEmpty) project.canonical, + if (project.canonical.isNotEmpty && project.metaId.isNotEmpty) + project.canonical, ]; bool knownDirectory(String directory) { if (directory.isEmpty || known.isEmpty) return true; diff --git a/pubspec.yaml b/pubspec.yaml index 64ace4a..f302bb5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: openchamber description: "A lightweight OpenChamber client for phones." publish_to: 'none' -version: 0.7.3+703 +version: 0.7.4+704 environment: sdk: ^3.14.0