feat(core): replace instruction checkpoints with value-delta sync (#36254)
This commit is contained in:
parent
768a69bbbd
commit
96a9731947
57 changed files with 2053 additions and 1278 deletions
|
|
@ -268,15 +268,13 @@ export function Session() {
|
|||
navigate({ type: "home" })
|
||||
return
|
||||
}
|
||||
void data.session.form
|
||||
.refresh("global", info.location)
|
||||
.catch((error) =>
|
||||
toast.show({
|
||||
message: `Failed to refresh global forms: ${errorMessage(error)}`,
|
||||
variant: "error",
|
||||
duration: 5000,
|
||||
}),
|
||||
)
|
||||
void data.session.form.refresh("global", info.location).catch((error) =>
|
||||
toast.show({
|
||||
message: `Failed to refresh global forms: ${errorMessage(error)}`,
|
||||
variant: "error",
|
||||
duration: 5000,
|
||||
}),
|
||||
)
|
||||
project.workspace.set(info.location.workspaceID)
|
||||
editor.reconnect(info.location.directory)
|
||||
if (route.sessionID === sessionID && scroll) scroll.scrollBy(100_000)
|
||||
|
|
@ -761,12 +759,7 @@ export function Session() {
|
|||
const sessionData = session()
|
||||
if (!sessionData) return
|
||||
|
||||
const options = await DialogExportOptions.show(
|
||||
dialog,
|
||||
showThinking(),
|
||||
showDetails(),
|
||||
showAssistantMetadata(),
|
||||
)
|
||||
const options = await DialogExportOptions.show(dialog, showThinking(), showDetails(), showAssistantMetadata())
|
||||
|
||||
if (options === null) return
|
||||
|
||||
|
|
@ -1312,7 +1305,7 @@ function SessionSwitchMessageV2(props: { message: SessionMessageInfo }) {
|
|||
function SessionNoticeMessageV2(props: { message: SessionMessageInfo }) {
|
||||
const { theme } = useTheme()
|
||||
const text = () => {
|
||||
if (props.message.type === "system") return "Instructions updated"
|
||||
if (props.message.type === "system") return props.message.text
|
||||
if (props.message.type === "synthetic") return props.message.description ?? ""
|
||||
return ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue