Hide empty observable output panel until content exists#91
Hide empty observable output panel until content exists#91
Conversation
Signed-off-by: Jeremy lewi <jeremy@lewi.us>
|
[codex-cuj-presubmit][sha:ec02f4bc877604c726f07dc790f182df2a1df61a] Required steps:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec02f4bc87
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }, [stderr, stdout]); | ||
|
|
||
| return ( | ||
| return hasRenderableOutput ? ( |
There was a problem hiding this comment.
Keep output container mounted across visibility toggles
Conditionally rendering two different div trees for containerRef causes rendered Observable content to be lost when hasRenderableOutput flips to true. On the first successful aisre.render, drawing happens in the hidden fallback node, then React unmounts that node and mounts a fresh visible container, so the user sees an empty panel even though hasRenderedContent was true; the same can occur on reruns when toggling back to hidden at start. This is a functional regression for cells that render DOM/SVG output.
Useful? React with 👍 / 👎.
|
@codex This PR doesn't fix the issue.
Please fix it for all cell types Add tests per docs-dev/architecture/testing.md Should this be
Capture videos to prove the bug is fixed |
Summary
Screenshot / Video ArtifactsWalkthrough video (webm): Testing
Implemented commit is on the current branch and I created the follow-up PR with title: “Fix output panel visibility for all cell types and add regression tests.” |
Signed-off-by: Codex <codex@openai.com>
Signed-off-by: Codex <codex@openai.com>
No description provided.