With Visual Studio 2026, TFVC code reviews in the Team Explorer can stop working. You open a review that is still open, and the header shows only this:

Closed by  ().

No reviewer name and no status, and every action is gone: you cannot close or abandon the review, and as a reviewer you cannot send feedback. The same review opened in Visual Studio 2022 on the same machine works normally. So the usual workaround is to switch back to Visual Studio 2022 just to complete the review.

The review is not closed. On the server the Code Review Request is still in state Requested, and Closed By and Closed Status are empty. The cause is on the client.

How the Team Explorer decides that a review is closed #

The code review page lives in Microsoft.TeamFoundation.CodeReview.Controls.dll. It does not read the State field of the Code Review Request to decide whether the review is open. It asks the work item client whether the request still has a transition for the action Microsoft.VSTS.CodeReview.Abandon:

private static RequestStates GetRequestState(WorkItem workItem)
{
    if (!string.IsNullOrEmpty(workItem.GetNextState("Microsoft.VSTS.CodeReview.Abandon")))
    {
        return RequestStates.Requested;
    }
    return RequestStates.Closed;
}

If no transition is found, the review counts as closed, and the header is built from two fields of the request:

string closedBy = CodeReviewModel.GetRequestField<string>("Microsoft.VSTS.Common.ClosedBy");
string closedStatus = CodeReviewModel.GetRequestField<string>("Microsoft.VSTS.CodeReview.ClosedStatus");
ReviewStatus = ResourceStrings.ClosedReview(closedBy, closedStatus); // "Closed by {0} ({1})."

For a review that is really open, both fields are empty, so you get Closed by ().. The empty text is itself the hint: the page treats an open review as closed because GetNextState returned nothing.

The code is the same in Visual Studio 2022 and 2026 #

I decompiled the code review assemblies and Microsoft.TeamFoundation.WorkItemTracking.Client.dll of both versions and compared them. The differences are cosmetic: compiler output, Array.Empty<T>() instead of new T[0], and the like. GetNextState is unchanged. It looks up the current state and scans the cached state transitions of the work item type for a matching action name:

public string GetNextState(string currentState, string action)
{
    ...
    Snapshot snapshot = m_store.Metadata.GetSnapshot();
    if (snapshot.FindConstByFullName(currentState, out var id))
    {
        snapshot.ScanTransitions(Id, r =>
        {
            if (r.lFromStateId == id && string.CompareOrdinal(Marshal.PtrToStringUni(r.pszName), action) == 0)
                ...
        });
    }
    ...
}

Those transitions come from the local work item metadata cache, not from the server.

The two versions use different caches #

The client stores work item metadata (types, fields, rules and state transitions) under the user profile. The version segment of the path differs between the two Visual Studio versions:

Visual Studio Client cache
2022 %LOCALAPPDATA%\Microsoft\Azure DevOps\8.0\Cache
2026 %LOCALAPPDATA%\Microsoft\Azure DevOps\12.0\Cache

The work item metadata of a collection is stored in a folder named <guid>_v2 inside it, as a set of *.curcache files: prodworkitemtypes1.curcache, statetransition1.curcache, rulesets1.curcache and so on.

On an affected machine, the timestamps in the Visual Studio 2026 cache did not match. The work item types and rules had been refreshed at a later metadata change, but statetransition1.curcache still had the date of the first time the cache was built. The Visual Studio 2022 cache of the same collection had all tables refreshed on the same date.

Reproducing it outside Visual Studio #

To confirm this without touching the running IDE, I wrote a small read-only console program. It loads one Code Review Request with the Team Explorer client assemblies of one Visual Studio version, redirects the client cache to a folder of my choice, and prints GetNextState for the code review actions. The cache can be redirected because TfsConnection.ClientSettingsDirectory has a setter:

// Point the client at a copy of the cache instead of the one Visual Studio uses.
typeof(TfsConnection)
    .GetProperty("ClientSettingsDirectory", BindingFlags.Public | BindingFlags.Static)
    .SetValue(null, cacheDirectory);

var tpc = new TfsTeamProjectCollection(new Uri(collectionUrl),
    new VssCredentials(new VssOAuthAccessTokenCredential(token)));
var store = tpc.GetService<WorkItemStore>();
WorkItem request = store.GetWorkItem(reviewId);

foreach (string action in new[] { "Abandon", "Accept", "Complete", "Reassign", "Remove", "Decline" })
{
    Console.WriteLine($"{action}: '{request.GetNextState("Microsoft.VSTS.CodeReview." + action)}'");
}

I compiled it once against the assemblies of each Visual Studio version and ran it against the same open review:

Client assemblies Cache Abandon on the request Result
VS 2022 copy of 8.0 Closed open, correct
VS 2026 copy of 12.0 empty treated as closed
VS 2026 empty folder Closed open, correct
VS 2026 copy of 12.0 without the collection’s _v2 folder Closed open, correct

With the stale cache, the Code Review Request reported the actions of a Code Review Response instead of its own:

Type: Code Review Request  State: Requested
  GetNextState(Microsoft.VSTS.CodeReview.Abandon)  = ''
  GetNextState(Microsoft.VSTS.CodeReview.Accept)   = 'Accepted'
  GetNextState(Microsoft.VSTS.CodeReview.Remove)   = 'Closed'
  GetNextState(Microsoft.VSTS.CodeReview.Decline)  = 'Closed'

With a fresh cache, it reported the right ones:

Type: Code Review Request  State: Requested
  GetNextState(Microsoft.VSTS.CodeReview.Abandon)  = 'Closed'
  GetNextState(Microsoft.VSTS.Actions.Checkin)     = 'Closed'

So the cached transition table no longer matches the cached work item types, and the request gets the transitions of a different type. It also did not repair itself: running the probe a second time against the same stale copy gave the same wrong result. The 32-bit and 64-bit builds behaved the same, so the native Microsoft.WITDataStore*.dll is not the difference.

The fix #

Clear the work item metadata cache of Visual Studio 2026 so that it is rebuilt from the server:

  1. Close Visual Studio 2026 (all instances).
  2. Delete the cache. The narrow option is only the _v2 folder of the affected collection:

    %LOCALAPPDATA%\Microsoft\Azure DevOps\12.0\Cache\<collection-guid>_v2
    

    If you do not know which GUID belongs to the collection, delete the whole 12.0\Cache folder. It is a cache. Visual Studio rebuilds it at the next connection, and the first work item query takes a bit longer.

    Remove-Item "$env:LOCALAPPDATA\Microsoft\Azure DevOps\12.0\Cache" -Recurse -Force
    
  3. Start Visual Studio 2026 and open the review again. The page shows the normal status, and you can close it.

I verified this in Visual Studio 2026 on an affected machine: after the cache was rebuilt, the review that showed Closed by (). showed its normal status again and could be closed.

Leave the 8.0 folder alone; it belongs to Visual Studio 2022, which is not affected.

To find the GUID of a collection, look in the LocationServiceData.config files of the cache folders; each one contains the URL of its organization or collection.

Open question: why the table went stale #

What I could show is that the cached transition table is older than the cached work item types, and that a rebuilt cache fixes it. Why the transitions were not refreshed together with the types, I cannot say for sure. The timestamps point to a metadata change on the server: Visual Studio 2026 then refreshed only part of its cache, while Visual Studio 2022 refreshed all of it.

If the problem comes back after the next process or work item type change, it is probably a bug in how Visual Studio 2026 updates its cache in increments, and worth reporting on Developer Community. Until then, clearing the cache is the fix, and you no longer need Visual Studio 2022 to complete a review.

References #


<
Previous Post
Fixing "Failed to add assembly redirects to test platform configuration files" Without Running Visual Studio as Admin
>
Blog Archive
Archive of all previous blog posts