Skip to content

Add log directory configuration for macOS - #164

Merged
1lck merged 9 commits into
1lck:preview/0.3.0from
Wz58luck:preview/0.3.0
Aug 19, 2026
Merged

1lck merged 9 commits into
1lck:preview/0.3.0from
Wz58luck:preview/0.3.0

Conversation

@Wz58luck

@Wz58luck Wz58luck commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

This pull request introduces a user-configurable log directory for the Lithe macOS app, allowing users to view, set, and restore the directory where logs are saved. The changes include updates to the settings model, UI enhancements in the settings view, new persistence logic, and comprehensive tests to ensure correct behavior. Additionally, a requirements specification document has been added to clarify the scope and acceptance criteria for this feature.

Log Directory Customization

  • Added a new customLogDirectory property to AppSettings, with logic to persist, restore, and reset the custom log directory. The effective log directory is now determined by this setting, defaulting to the standard user logs location if unset. (Sources/Lithe/Models/Settings/AppSettings.swift) [1] [2] [3] [4] [5]
  • Updated the settings UI to display both the default and current log directories, allow users to select a custom directory, restore the default, and copy directory paths. (Sources/Lithe/Views/App/SettingsView.swift) [1] [2] [3]

Testing and Documentation

  • Added a test to verify that the custom log directory persists across app launches and can be restored to default, ensuring robust behavior. (Tests/LitheTests/AppSettingsTests.swift)
  • Introduced a requirements specification document detailing the motivation, scope, UI/UX, and acceptance criteria for the macOS log directory configuration feature. (docs/superpowers/specs/2026-08-17-cross-platform-logging-requirements.md)

测试前后对比图
4de150b708d3c3afdec72d61e5c1ef88
image

@Wz58luck
Wz58luck requested a review from 1lck August 18, 2026 15:24
@xiaoyumuxi

Copy link
Copy Markdown
Collaborator

基本没啥问题了

@1lck
1lck merged commit ada13ad into 1lck:preview/0.3.0 Aug 19, 2026
5 checks passed
@Wz58luck
Wz58luck deleted the preview/0.3.0 branch August 29, 2026 02:28
xiaoyumuxi added a commit that referenced this pull request Nov 22, 2026
* feat(desktop): 远程工作区在主机上运行内置的程序和脚本运行配置 (#2231)

- 运行配置的读取、校验和启动计划由 Core 路由到主机(固定 Core 43da0b3,Core #161)
- 内置的程序和脚本运行经 remote.runProcess 在主机上启动:脚本写进主机临时目录并在结束后删除,
  工作目录拼到主机根下,环境用主机登录环境叠加计划和配置的变量
- 输出经有上限(8 MiB)的缓冲送进 Run 窗口,标签页带“主机”徽标;停止先发 SIGTERM,
  超过停止等待时间再强制结束;退出码、信号和断线各自说明
- 构建工具、插件运行、调试、启动前步骤、工具链程序和“当前文件”在远程工作区说明暂不支持(#43b)
- 输出里的主机路径用 remote.stat 找到文件后换成占位路径打开,工作区以外的落在 .lithe-remote-host 下
- 中英词条、功能矩阵、Agent 笔记和无头截图

* feat(desktop): 远程工作区在主机上依次运行执行前列表里的内置运行配置 (#2231)

执行前列表里引用的程序或脚本运行配置在主机上按顺序先运行,输出和步骤标题进同一个控制台;
步骤非零退出时说明步骤名和退出码,配置不启动;停止或超出准备时间先给步骤的主机进程发 SIGTERM。
只有列表里有插件任务时才说明暂不支持(R3)。

* chore(desktop): Core 固定版本换成 main 57e55d6(#162/#163/#164 已合入)(#2231)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants