PageSourceSearch

https://null42.notion.site/_assets/companionReset-be4529596a1b9f27.js

js null42.notion.site collected 2026-10-09 21:24:08 UTC 1,085 bytes, 1 lines download raw bytes

1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[22137],{971825(e,t,a){async function n(e){let{environment:t,threadStore:n,spaceViewStore:r}=e,o=r.getSpaceId();if(!o||r.getUserId()!==t.currentUser.id||!(0,a(364146).C4)(n,r))throw Error("Only your current companion thread can be reset.");let{serverCommitResult:i}=(0,a(323517).createAndCommit)({environment:t,cellTarget:{spaceWithId:o},canUndo:!1,userAction:"agentCompanion.resetThread",perform:e=>{(0,a(787932).z)({store:r.getSettingsStore(),transaction:e,data:{agent_companion_data:null}}),(0,a(787932).z)({store:n.getDataStore(),transaction:e,data:{agent_mode:null}})}});await i}async function r(e){let{environment:t,spaceViewStore:r}=e,o=(0,a(364146).kM)(r),i=r.getSpaceId();if(o&&i&&(await (0,a(647095).Gh)({message:e.confirmationMessage})).accept){let e=a(174148).E.createChildStore(r,{table:"thread",id:o,spaceId:i});await e.load(),await n({environment:t,threadStore:e,spaceViewStore:r})}}a.r(t),a(533958),a.d(t,{confirmAndResetCompanionThread:()=>r,resetCompanionThread:()=>n})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.