feat(tui): integrate rich context builder into agent turn process

This commit is contained in:
asepharyana
2026-07-20 16:16:26 +07:00
parent bed9f8cff6
commit 919435eb84
2 changed files with 75 additions and 1 deletions
+5 -1
View File
@@ -129,9 +129,13 @@ fn run_turn(params: TurnParams) {
if let Some(root) = params.workspace_roots.first() {
let tree = zesdex_infrastructure::utils::build_workspace_tree(root, 800);
let rich_ctx = zesdex_infrastructure::utils::build_rich_context(root);
sys_prompt.push_str("\n\nWorkspace structure:\n```\n");
sys_prompt.push_str(&tree);
sys_prompt.push_str("\n```\n");
sys_prompt.push_str("\n```\n\n");
sys_prompt.push_str(&rich_ctx);
}
let sys_msg = ChatMessage::system(sys_prompt);