mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Merge pull request #436 from chriswritescode-dev/feat/activity-switcher
feat(activity): surface active work across the session picker, tool rail and mobile
This commit is contained in:
60 files changed
+3992
-491
No files matched your search
@@ -125,6 +125,19 @@ describe('OpenCode facade', () => {
|
||||
expect(lastRequest().init.method).toBe('GET')
|
||||
})
|
||||
|
||||
it('omits the parentID filter when including child sessions', async () => {
|
||||
fetchMock.mockResolvedValue(
|
||||
jsonResponse({ data: [sessionInfo('ses_child', '/repo')], cursor: {} }),
|
||||
)
|
||||
|
||||
await listSessionPage({ directory: '/repo', limit: 25, order: 'desc', includeChildren: true })
|
||||
|
||||
expect(lastRequest().url).toBe(
|
||||
'http://localhost/api/opencode/api/session?limit=25&order=desc&directory=%2Frepo',
|
||||
)
|
||||
expect(lastRequest().init.method).toBe('GET')
|
||||
})
|
||||
|
||||
it('reads a single session from the V2 session route', async () => {
|
||||
fetchMock.mockResolvedValue(jsonResponse({ data: sessionInfo('ses_1', '/repo') }))
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ export interface SessionPageInput {
|
||||
order?: 'asc' | 'desc'
|
||||
search?: string
|
||||
cursor?: string
|
||||
includeChildren?: boolean
|
||||
}
|
||||
|
||||
export interface CreateSessionInput {
|
||||
@@ -102,7 +103,7 @@ export async function listSessionPage(input: SessionPageInput): Promise<SessionP
|
||||
...(input.directory === undefined ? {} : { directory: input.directory }),
|
||||
...(input.project === undefined ? {} : { project: input.project }),
|
||||
...(input.subpath === undefined ? {} : { subpath: input.subpath }),
|
||||
parentID: 'null',
|
||||
...(input.includeChildren ? {} : { parentID: 'null' }),
|
||||
limit: input.limit,
|
||||
order: input.order,
|
||||
search: input.search,
|
||||
|
||||
@@ -6,6 +6,8 @@ import {
|
||||
DEFAULT_LEADER_KEY,
|
||||
DEFAULT_DIRECT_SHORTCUTS,
|
||||
BLOCKED_SERVER_ENV_KEYS,
|
||||
DEFAULT_ACTIVITY_WINDOW_MINUTES,
|
||||
ACTIVITY_WINDOW_MINUTE_OPTIONS,
|
||||
selectPreferredOpenCodeConfigSourceName,
|
||||
type TTSConfig,
|
||||
type STTConfig,
|
||||
@@ -29,7 +31,7 @@ import { saveFile } from '@/lib/download'
|
||||
|
||||
export type { TTSConfig, STTConfig, OpenCodeConfigFile, OpenCodeConfigSourceFile, OpenCodeConfigSourceName, UpdateOpenCodeConfigRequest, ModelConfig, ProviderConfig, SandboxPreferences, NotificationPreferences, SkillFileInfo, CreateSkillRequest, UpdateSkillRequest, SkillScope, InstallSkillFromGithubRequest, InstallSkillResponse }
|
||||
export type { UserPreferences, UpdateSettingsRequest, CustomCommand, GitCredential, GitIdentity, GitIdentityProfile, KeyboardShortcutAction } from '@opencode-manager/shared'
|
||||
export { DEFAULT_TTS_CONFIG, DEFAULT_STT_CONFIG, DEFAULT_KEYBOARD_SHORTCUTS, DEFAULT_USER_PREFERENCES, DEFAULT_LEADER_KEY, DEFAULT_DIRECT_SHORTCUTS, BLOCKED_SERVER_ENV_KEYS }
|
||||
export { DEFAULT_TTS_CONFIG, DEFAULT_STT_CONFIG, DEFAULT_KEYBOARD_SHORTCUTS, DEFAULT_USER_PREFERENCES, DEFAULT_LEADER_KEY, DEFAULT_DIRECT_SHORTCUTS, BLOCKED_SERVER_ENV_KEYS, DEFAULT_ACTIVITY_WINDOW_MINUTES, ACTIVITY_WINDOW_MINUTE_OPTIONS }
|
||||
export { isOpenCodeConfigSourceName } from '@opencode-manager/shared'
|
||||
|
||||
export function getOpenCodeConfigSources(config: OpenCodeConfigFile): OpenCodeConfigSourceFile[] {
|
||||
|
||||
Reference in new issue
Block a user