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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user