feat: Add cwd and os to TerminalHistory for precise agent binding

This commit is contained in:
Riz Ashraf committed 2026-09-29 08:34:36 +01:00
1 parent 98a1716ac8
commit b3c64c1ad8
3 files changed
+18 -13

No files matched your search

+2 -1
View File
@@ -138,7 +138,8 @@ mod tests {
let payload = TerminalHistory {
command: "echo test".to_string(),
exit_code: 0,
cwd: "C:/Users/reazul.ashraf/workspace".to_string(),
os: "windows".to_string(),
timestamp: 12345,
};
+2 -1
View File
@@ -214,7 +214,8 @@ pub struct GateRecord {
pub struct TerminalHistory {
pub command: String,
pub exit_code: i32,
pub cwd: String,
pub os: String,
pub timestamp: u64,
}