Skip to content
Draft
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
8 changes: 4 additions & 4 deletions agent-support/vscode/src/ai-tab-edit-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class AITabEditManager {
// Before edit checkpoint
await this.aiEditManager.checkpoint("ai_tab", JSON.stringify({
hook_event_name: 'before_edit',
tool: 'github-copilot-tab',
model: 'default',
tool: 'github-copilot',
model: 'tab',
will_edit_filepaths: [last.document.uri.fsPath],
dirty_files: {
...this.aiEditManager.getDirtyFiles(),
Expand All @@ -86,8 +86,8 @@ export class AITabEditManager {
// After edit checkpoint
await this.aiEditManager.checkpoint("ai_tab", JSON.stringify({
hook_event_name: 'after_edit',
tool: 'github-copilot-tab',
model: 'default',
tool: 'github-copilot',
model: 'tab',
edited_filepaths: [last.document.uri.fsPath],
dirty_files: {
...this.aiEditManager.getDirtyFiles(),
Expand Down
6 changes: 6 additions & 0 deletions src/authorship/post_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,15 @@ pub fn filter_untracked_files(
/// across multiple checkpoints when only the final version matters.
fn update_prompts_to_latest(checkpoints: &mut [Checkpoint]) -> Result<(), GitAiError> {
// Group checkpoints by agent ID (tool + id), tracking indices
// Only process AiAgent checkpoints (skip AiTab and Human)
let mut agent_checkpoint_indices: HashMap<String, Vec<usize>> = HashMap::new();

for (idx, checkpoint) in checkpoints.iter().enumerate() {
// Skip non-AiAgent checkpoints
if checkpoint.kind != crate::authorship::working_log::CheckpointKind::AiAgent {
continue;
}

if let Some(agent_id) = &checkpoint.agent_id {
let key = format!("{}:{}", agent_id.tool, agent_id.id);
agent_checkpoint_indices
Expand Down
Loading
Loading