Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "StopChat" button is failing in cloud #557

Closed
rhennigan opened this issue Jan 22, 2024 · 0 comments · Fixed by #558
Closed

The "StopChat" button is failing in cloud #557

rhennigan opened this issue Jan 22, 2024 · 0 comments · Fixed by #558
Assignees
Labels
bug Something isn't working cloud Issues affecting chat notebooks in the cloud front end

Comments

@rhennigan
Copy link
Member

This is failing because CellInformation is only returning a single string for cells that have multiple styles when in cloud:

image

This definition isn't working in cloud for dynamic chat outputs, since they have both "Output" and "ChatOutput" styles and this only sees the "Output":

chatOutputCellQ[ cell_CellObject ] := chatOutputCellQ[ cell ] = chatOutputCellQ[ cell, Developer`CellInformation @ cell ];
chatOutputCellQ[ cell_, KeyValuePattern[ "Style" -> $$chatOutputStyle ] ] := True;
chatOutputCellQ[ cell_CellObject, ___ ] := ($badCellObject = cell; $badCell = NotebookRead @ cell; False);
chatOutputCellQ[ ___ ] := False;

Debug Data
Property Value
Name "Wolfram/Chatbook"
Version "1.4.1"
ReleaseID "$RELEASE_ID$"
EvaluationEnvironment "Session"
FrontEndVersion "Cloud: 1.67.1 (December 19, 2023)"
KernelVersion "14.0.0 for Linux x86 (64-bit) (December 13, 2023)"
SystemID "Linux-x86-64"
Notebooks True
DynamicEvaluation False
SynchronousEvaluation True
TaskEvaluation False

Settings

Property Value

Stack Data

catchTop
throwFailure
trimURL

Failure Data

<|
  "Evaluation" :> Wolfram`Chatbook`Actions`Private`ensureChatOutputCell[CellObject["d16ba1fa-2fc2-4b89-88bc-6e4e6828332e", "50d78f8e6c1846daac5f374b499d6c42"], CellObject["d16ba1fa-2fc2-4b89-88bc-6e4e6828332e", "50d78f8e6c1846daac5f374b499d6c42"]]
  "Arguments" -> {}
  "Stack" :> Wolfram`Chatbook`Common`Private`$stack$82097
|>
@rhennigan rhennigan added bug Something isn't working cloud Issues affecting chat notebooks in the cloud front end labels Jan 22, 2024
@rhennigan rhennigan self-assigned this Jan 22, 2024
@rhennigan rhennigan linked a pull request Jan 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cloud Issues affecting chat notebooks in the cloud front end
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant