feat(coding-agent): enabled importing foreign sessions from claude and codex
- Implemented session stores and metadata converters to import Claude and Codex sessions into OMP. - Added `--from-claude` and `--from-codex` CLI flags and `/resume` command arguments for foreign session resolution. - Updated session selector components and controllers to support listing and picking external agent sessions. - Added comprehensive unit tests and documentation covering foreign session import functionality.
This commit is contained in:
@@ -103,6 +103,7 @@ import {
|
||||
SHUTDOWN_CONSOLIDATE_BUDGET_MS,
|
||||
} from "../session/agent-session";
|
||||
import type { CompactMode } from "../session/compact-modes";
|
||||
import type { ForeignSessionSource } from "../session/foreign-session-store";
|
||||
import { HistoryStorage } from "../session/history-storage";
|
||||
import type { SessionContext } from "../session/session-context";
|
||||
import { getRecentSessions } from "../session/session-listing";
|
||||
@@ -4685,8 +4686,8 @@ export class InteractiveMode implements InteractiveModeContext {
|
||||
this.#selectorController.showTreeSelector();
|
||||
}
|
||||
|
||||
showSessionSelector(): void {
|
||||
this.#selectorController.showSessionSelector();
|
||||
showSessionSelector(source?: ForeignSessionSource): void {
|
||||
void this.#selectorController.showSessionSelector(source);
|
||||
}
|
||||
|
||||
async handleResumeSession(sessionPath: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user