Skip to content

fix(wechat-bridge): use most recently active project as default directory#214

Merged
code-JDS merged 1 commit intodevfrom
find-projects
Apr 9, 2026
Merged

fix(wechat-bridge): use most recently active project as default directory#214
code-JDS merged 1 commit intodevfrom
find-projects

Conversation

@yqmaphy
Copy link
Copy Markdown
Collaborator

@yqmaphy yqmaphy commented Apr 9, 2026

Summary

Fixes #213

  • Default directory resolution: When AETHER_WORK_DIR is not set, the WeChat bridge now queries /project/recent and selects the most recently active project instead of falling back to Path.cwd() (which resolved to the Aether installation directory).
  • Fallback: If no projects exist or the API call fails, the bridge falls back to the user's home directory (Path.home()).
  • Cleanup: Removed _is_root_dir method and its usage — the /project/recent SQL already excludes root directories and only returns entries with at least one session.

Test Plan

  1. Start Aether without setting AETHER_WORK_DIR
  2. Connect WeChat bridge
  3. Verify the default project is the most recently active one from /project/recent, not the installation directory
  4. With no existing projects, verify it falls back to the user's home directory

…tory

When AETHER_WORK_DIR is not set, the WeChat bridge previously fell back
to Path.cwd(), which resolves to the Aether installation directory.
Now it queries /project/recent and picks the most recently active
project, falling back to the user's home directory if no projects exist.
@code-JDS code-JDS merged commit d20c8e5 into dev Apr 9, 2026
9 checks passed
@code-JDS code-JDS deleted the find-projects branch April 9, 2026 02:59
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.

WeChat bridge defaults to installation directory instead of most recent project

3 participants