3
43
Fork
You've already forked opencode.el
16

Session manager does not correctly identify projects #6

Closed
opened 2026年01月15日 10:48:39 +01:00 by fast-90 · 2 comments

See the attached video. I started a session in two different repos/projects, but they all end up in the same session manager. If I read the README correctly, the session manager should only show sessions from one project (just like the official TUI).

I am running Emacs 31.0.50, MacOS, opencode 1.1.21.

See the attached video. I started a session in two different repos/projects, but they all end up in the same session manager. If I read the README correctly, the session manager should only show sessions from one project (just like the official TUI). I am running Emacs 31.0.50, MacOS, opencode 1.1.21.
Owner
Copy link

I think this is caused by having an unexpanded ~ in the directory we send to opencode. On my machine default-directory always seems expanded, but it looks like in emacs it's allowed to have ~ in it. I added a couple calls to expand-file-name so we shouldn't send ~ anymore, in bac1921, does that fix it for you?

I think this is caused by having an unexpanded `~` in the directory we send to opencode. On my machine `default-directory` always seems expanded, but it looks like in emacs it's allowed to have `~` in it. I added a couple calls to `expand-file-name` so we shouldn't send `~` anymore, in bac1921, does that fix it for you?
Author
Copy link

@sczi wrote in #6 (comment):

I think this is caused by having an unexpanded ~ in the directory we send to opencode. On my machine default-directory always seems expanded, but it looks like in emacs it's allowed to have ~ in it. I added a couple calls to expand-file-name so we shouldn't send ~ anymore, in bac1921, does that fix it for you?

It does, thanks for the quick response!

@sczi wrote in https://codeberg.org/sczi/opencode.el/issues/6#issuecomment-9889334: > I think this is caused by having an unexpanded `~` in the directory we send to opencode. On my machine `default-directory` always seems expanded, but it looks like in emacs it's allowed to have `~` in it. I added a couple calls to `expand-file-name` so we shouldn't send `~` anymore, in [`bac1921`](/sczi/opencode.el/commit/bac1921), does that fix it for you? It does, thanks for the quick response!
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sczi/opencode.el#6
Reference in a new issue
sczi/opencode.el
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?