Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ExportCommand = cmd({
})

const sessions = []
for await (const session of Session.list()) {
for await (const session of Session.listGlobal()) {
sessions.push(session)
}

Expand Down
3 changes: 2 additions & 1 deletion packages/opencode/src/cli/cmd/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export const SessionListCommand = cmd({
},
handler: async (args) => {
await bootstrap(process.cwd(), async () => {
const sessions = [...Session.list({ roots: true, limit: args.maxCount })]
// Use listGlobal to show all sessions regardless of current project/git context
const sessions = [...Session.listGlobal({ roots: true, limit: args.maxCount })]

if (sessions.length === 0) {
return
Expand Down
Loading