feat: Enhance agent chat widget with history management and proposal handling
This commit is contained in:
@@ -40,6 +40,9 @@ void ProposalDrawer::Draw() {
|
||||
if (needs_refresh_) {
|
||||
RefreshProposals();
|
||||
needs_refresh_ = false;
|
||||
if (!selected_proposal_id_.empty() && !selected_proposal_) {
|
||||
SelectProposal(selected_proposal_id_);
|
||||
}
|
||||
}
|
||||
|
||||
// Header with refresh button
|
||||
@@ -441,6 +444,13 @@ void ProposalDrawer::DrawActionButtons() {
|
||||
}
|
||||
}
|
||||
|
||||
void ProposalDrawer::FocusProposal(const std::string& proposal_id) {
|
||||
visible_ = true;
|
||||
selected_proposal_id_ = proposal_id;
|
||||
selected_proposal_ = nullptr;
|
||||
needs_refresh_ = true;
|
||||
}
|
||||
|
||||
void ProposalDrawer::RefreshProposals() {
|
||||
auto& registry = cli::ProposalRegistry::Instance();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user