Skip to content

Fix refresh after manualy changing task context#16816

Merged
JonasHelming merged 2 commits intomasterfrom
fix-refresh-task-context
Jan 12, 2026
Merged

Fix refresh after manualy changing task context#16816
JonasHelming merged 2 commits intomasterfrom
fix-refresh-task-context

Conversation

@JonasHelming
Copy link
Copy Markdown
Contributor

What it does

Fix a refresh bug for task context. If you work with an AI created task context and change it manually, the agent still works with the old version after saving the file (see how to test)

How to test

Before:

  • Create a task context with architect
  • Change it manually (e.g. add a new step)
  • Run Coder (F1 => Chat: Task Context: Initiate Session)
  • Observe that the change is not reflected. You can also stop the agent and ask to print out the task context
    After:
    The above case works reflecting the change

Follow-ups

I removed the cache for task context content, which I thin is a pragmatic solution. However, this might point to an issue with the file watcher we should investigate potentially..

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

@JonasHelming JonasHelming requested a review from ndoschek January 10, 2026 19:20
@github-project-automation github-project-automation Bot moved this to Waiting on reviewers in PR Backlog Jan 10, 2026
Copy link
Copy Markdown
Member

@ndoschek ndoschek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!
I tested the example scenario a few times and it worked fine for me, the updated task context is used immediately now.

I just have a minor comment inline, would be great if you could have a quick look.

Comment thread packages/ai-ide/src/browser/task-context-file-storage-service.ts Outdated
Co-authored-by: Nina Doschek <ndoschek@eclipsesource.com>
@JonasHelming JonasHelming requested a review from ndoschek January 12, 2026 10:39
Copy link
Copy Markdown
Member

@ndoschek ndoschek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick update! LGTM 👍

@github-project-automation github-project-automation Bot moved this from Waiting on reviewers to Needs merge in PR Backlog Jan 12, 2026
@JonasHelming JonasHelming merged commit 41650b2 into master Jan 12, 2026
10 checks passed
@JonasHelming JonasHelming deleted the fix-refresh-task-context branch January 12, 2026 11:12
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Jan 12, 2026
@github-actions github-actions Bot added this to the 1.68.0 milestone Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants