fix: react prompts (#2537)

This commit is contained in:
yetone
2025-07-26 16:06:56 +08:00
committed by GitHub
parent bd69ae14f6
commit 8bc149ccd8
14 changed files with 448 additions and 173 deletions

View File

@@ -44,6 +44,7 @@ struct TemplateContext {
model_name: Option<String>,
memory: Option<String>,
todos: Option<String>,
enable_fastapply: Option<bool>,
}
// Given the file name registered after add, the context table in Lua, resulted in a formatted
@@ -72,6 +73,7 @@ fn render(state: &State, template: &str, context: TemplateContext) -> LuaResult<
model_name => context.model_name,
memory => context.memory,
todos => context.todos,
enable_fastapply => context.enable_fastapply,
})
.map_err(LuaError::external)
.unwrap())