fix(search): clear searchUnchanged after one view() tick

Expose duplicate setSearch as a single-view flag so UI and agentctl can
detect no-op searches without the flag sticking across polls.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-23 08:16:28 -04:00
co-authored by Cursor
parent 756b789ec5
commit 7ebb5b945c
+5 -1
View File
@@ -10645,7 +10645,11 @@ class PearcordPlatform extends EventEmitter {
)
: [],
searchScope: this._searchScope,
searchUnchanged: !!this._searchUnchanged,
searchUnchanged: (() => {
const flag = !!this._searchUnchanged
if (this._searchUnchanged) this._searchUnchanged = false
return flag
})(),
forumIncludeArchived: this._forumIncludeArchived,
searchResults: await this._resolveSearchResults({ light }),
searchResultsCached: !!this._lastSearchFromCache,