Skip to content

Commit 0aea4a5

Browse files
authored
Merge pull request #1386 from WolframResearch/bugfix/Sidebar13
Bugfix/sidebar13
2 parents c43c93a + 755579d commit 0aea4a5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Source/Chatbook/Actions.wl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,9 @@ resolveAppContainer[ c_CellObject, nbo_NotebookObject ] := Enclose[
13401340
ParentCell @ c,
13411341
MemberQ[ tags, Alternatives[ "SidebarTopCell" ] ],
13421342
ParentCell @ ParentCell @ c,
1343+
(* new SidebarTopCell from sending a chat has uuid as a temporary cell tag, but asking for app container may occur before it gets a "real" cell tag *)
1344+
StringMatchQ[ First[ tags, "" ], RegularExpression["[A-Za-z0-9]{8}\\-[A-Za-z0-9]{4}\\-[A-Za-z0-9]{4}\\-[A-Za-z0-9]{4}\\-[A-Za-z0-9]{12}"] ],
1345+
ParentCell @ ParentCell @ c,
13431346
True,
13441347
None
13451348
],

Source/Chatbook/PromptGenerators/VectorDatabases.wl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ downloadVectorDatabases[ dir0_, urls0_Association ] := Enclose[
551551
$extraDownloadTasks = Internal`Bag[ ];
552552

553553
dir = ConfirmBy[ GeneralUtilities`EnsureDirectory @ dir0, DirectoryQ, "Directory" ];
554-
cleanupLegacyVectorDBFiles @ dir;
554+
(* cleanupLegacyVectorDBFiles @ dir; *) (* function not defined *)
555555

556556
(* Try unpacking any zip files that might be left over from previous install attempts: *)
557557
Quiet @ catchAlways @ tryUnpackingVectorDatabases @ dir;
@@ -775,7 +775,7 @@ setDownloadProgress[ name_String ] :=
775775
setDownloadProgress[ name, ## ] &;
776776

777777
setDownloadProgress[ name_, KeyValuePattern[ "ByteCountDownloaded" -> b_? Positive ] ] := (
778-
Internal`YieldAsynchronousTask[ ];
778+
(* Internal`YieldAsynchronousTask[ ]; *) (* causes recursion *)
779779
$downloadProgress[ name ] = b
780780
);
781781

0 commit comments

Comments
 (0)