Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub const SOURCE_TRAE: &str = "trae";
pub const SOURCE_CLINE: &str = "cline";
pub const SOURCE_WARP: &str = "warp";
pub const SOURCE_ZCODE: &str = "zcode";
pub const SOURCE_QODER: &str = "qoder";
// Hook-only sources: ORGII installs a managed PostToolUse command hook for
// these CLIs and records their file-interaction provenance, but does not yet
// import their session transcripts. Kept out of `is_imported_history_source`
Expand All @@ -40,6 +41,7 @@ pub fn is_imported_history_source(source: &str) -> bool {
| SOURCE_CLINE
| SOURCE_WARP
| SOURCE_ZCODE
| SOURCE_QODER
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ enum ImportedHistoryLoader {
Cline,
Warp,
ZCode,
Qoder,
}

fn imported_history_loader(session_id: &str) -> Option<ImportedHistoryLoader> {
Expand All @@ -63,6 +64,8 @@ fn imported_history_loader(session_id: &str) -> Option<ImportedHistoryLoader> {
Some(ImportedHistoryLoader::Warp)
} else if session_id.starts_with(super::zcode::history::ZCODE_SESSION_PREFIX) {
Some(ImportedHistoryLoader::ZCode)
} else if session_id.starts_with(super::qoder::history::QODER_SESSION_PREFIX) {
Some(ImportedHistoryLoader::Qoder)
} else {
None
}
Expand Down Expand Up @@ -112,6 +115,9 @@ pub fn load_activity_chunks_for_session(
Some(ImportedHistoryLoader::ZCode) => {
super::zcode::history::load_zcode_history_for_session(session_id)?
}
Some(ImportedHistoryLoader::Qoder) => {
super::qoder::history::load_qoder_history_for_session(conn, session_id)?
}
None => return Ok(None),
};
Ok(Some(chunks))
Expand Down Expand Up @@ -653,6 +659,7 @@ mod impact_tests {
("clineapp-id", ImportedHistoryLoader::Cline),
("warpapp-id", ImportedHistoryLoader::Warp),
("zcodeapp-id", ImportedHistoryLoader::ZCode),
("qoderapp-id", ImportedHistoryLoader::Qoder),
];

for (session_id, expected) in cases {
Expand Down
1 change: 1 addition & 0 deletions src-tauri/crates/orgtrack-core/src/sources/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub mod imported_history;
pub mod opencode;
pub mod orgii_cli;
pub mod orgii_rust_agents;
pub mod qoder;
pub mod trae;
pub mod warp;
pub mod windsurf;
Expand Down
Loading
Loading