René's URL Explorer Experiment


Title: deepnote cat shows separator blocks as (empty) instead of --- · Issue #599 · deepnote/deepnote · GitHub

Open Graph Title: deepnote cat shows separator blocks as (empty) instead of --- · Issue #599 · deepnote/deepnote

X Title: deepnote cat shows separator blocks as (empty) instead of --- · Issue #599 · deepnote/deepnote

Description: Problem deepnote cat is supposed to show separator blocks as a horizontal line (---), as added in #242. Instead, the text output prints (empty): ──────────────────────────────────────────────────────────── separator (b) (empty) ─────────...

Open Graph Description: Problem deepnote cat is supposed to show separator blocks as a horizontal line (---), as added in #242. Instead, the text output prints (empty): ────────────────────────────────────────────────────...

X Description: Problem deepnote cat is supposed to show separator blocks as a horizontal line (---), as added in #242. Instead, the text output prints (empty): ────────────────────────────────────────────────────...

Opengraph URL: https://github.com/deepnote/deepnote/issues/599

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"deepnote cat shows separator blocks as (empty) instead of ---","articleBody":"## Problem\n\n`deepnote cat` is supposed to show separator blocks as a horizontal line (`---`), as added in #242. Instead, the text output prints `(empty)`:\n\n```\n────────────────────────────────────────────────────────────\nseparator (b)\n  (empty)\n\n────────────────────────────────────────────────────────────\n```\n\n`deepnote cat \u003cfile> -o json` returns `\"content\": \"\"` for the same block.\n\n## Cause\n\nThe separator branch in `getBlockContent` never runs, because the `content` check before it always matches:\n\nhttps://github.com/deepnote/deepnote/blob/a698ad0291be8e75d841ab9404f0f5e594f0a64a/packages/cli/src/commands/cat.ts#L252-L264\n\n`cat` reads blocks through `deserializeDeepnoteFile`. Its `emptyContent()` preprocess always sets a separator's `content` to `''`, even when the file has no `content` key:\n\nhttps://github.com/deepnote/deepnote/blob/a698ad0291be8e75d841ab9404f0f5e594f0a64a/packages/blocks/src/deepnote-file/deepnote-file-schema.ts#L10\n\nSo `getBlockContent` returns `''`, and the text renderer prints `(empty)`:\n\nhttps://github.com/deepnote/deepnote/blob/a698ad0291be8e75d841ab9404f0f5e594f0a64a/packages/cli/src/commands/cat.ts#L206-L222\n\nThis has been the case since `cat` was added. TypeScript didn't flag the dead branch because the inferred type of `content` was `'' | undefined`. #597, the zod 4 migration, makes the type exactly `''`, so the comparison becomes TS2367. That PR removes the unreachable branch and doesn't change any behavior.\n\n## Proposed fix\n\n- In the text output path of `cat`, show `---` for separator blocks instead of the result of `getBlockContent`. For example, `block.type === 'separator' ? '---' : getBlockContent(block)`. `highlightContent` only colors `code` and `sql`, so `---` prints as is.\n- Leave `-o json` unchanged (`\"content\": \"\"`). JSON output carries block data, not display strings, so the check shouldn't move to the top of `getBlockContent`.\n- Add `packages/cli/src/commands/cat.test.ts` cases for a separator block in text output and in JSON output. No test covers separators today.\n\n## Acceptance criteria\n\n- `deepnote cat \u003cfile>` prints `---` for a separator block.\n- `deepnote cat \u003cfile> -o json` still returns `\"content\": \"\"` for that block.\n- Tests cover both outputs.\n","author":{"url":"https://github.com/tkislan","@type":"Person","name":"tkislan"},"datePublished":"2026-10-28T19:15:04Z","url":"https://github.com/deepnote/deepnote/issues/599"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:96cad1e8-80ba-5b2a-c5a5-2b6628eb743c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idACC6:21FC11:F955D8:14B6605:6AED6126
html-safe-nonce42df266e1626b6233a0a50299262320b8d059a821fecb47842a266f59a65d3f8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0M2OjIxRkMxMTpGOTU1RDg6MTRCNjYwNTo2QUVENjEyNiIsInZpc2l0b3JfaWQiOiI3OTg5MzcyNDQzNTMwNDUzMjg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc5d376ebb6898ac65afa55fbeca4b6b5f86991af2b6ddc23d8258eb335f304a1
hovercard-subject-tagissue:6085788489
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/deepnote/deepnote/599/issue_layout
twitter:imagehttps://opengraph.githubassets.com/94bb2b084085be460572858413f82026c2f136a422ec1d4997d2eb536b8967d1/deepnote/deepnote/issues/599
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/94bb2b084085be460572858413f82026c2f136a422ec1d4997d2eb536b8967d1/deepnote/deepnote/issues/599
og:image:altProblem deepnote cat is supposed to show separator blocks as a horizontal line (---), as added in #242. Instead, the text output prints (empty): ────────────────────────────────────────────────────...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametkislan
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
go-importgithub.com/deepnote/deepnote git https://github.com/deepnote/deepnote.git
octolytics-dimension-user_id45339858
octolytics-dimension-user_logindeepnote
octolytics-dimension-repository_id1066509034
octolytics-dimension-repository_nwodeepnote/deepnote
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1066509034
octolytics-dimension-repository_network_root_nwodeepnote/deepnote
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/deepnote/deepnote/issues/599#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepnote%2Fdeepnote%2Fissues%2F599
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepnote%2Fdeepnote%2Fissues%2F599
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=deepnote%2Fdeepnote
Reloadhttps://github.com/deepnote/deepnote/issues/599
Reloadhttps://github.com/deepnote/deepnote/issues/599
Reloadhttps://github.com/deepnote/deepnote/issues/599
deepnotehttps://github.com/deepnote
deepnotehttps://github.com/deepnote/deepnote
Codehttps://github.com/deepnote/deepnote
Issues13 (13)https://github.com/deepnote/deepnote/issues
Pull requests22 (22)https://github.com/deepnote/deepnote/pulls
Discussionshttps://github.com/deepnote/deepnote/discussions
Actionshttps://github.com/deepnote/deepnote/actions
Security and qualityhttps://github.com/deepnote/deepnote/security
Insightshttps://github.com/deepnote/deepnote/pulse
https://github.com/deepnote/deepnote
New issuehttps://github.com/login?return_to=https://github.com/deepnote/deepnote/issues/599
New issuehttps://github.com/login?return_to=https://github.com/deepnote/deepnote/issues/599
#600https://github.com/deepnote/deepnote/pull/600
deepnote cat shows separator blocks as (empty) instead of ---https://github.com/deepnote/deepnote/issues/599#top
#600https://github.com/deepnote/deepnote/pull/600
bugSomething isn't workinghttps://github.com/deepnote/deepnote/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/tkislan
tkislanhttps://github.com/tkislan
on Oct 28, 2026https://github.com/deepnote/deepnote/issues/599#issue-6085788489
#242https://github.com/deepnote/deepnote/pull/242
deepnote/packages/cli/src/commands/cat.tshttps://github.com/deepnote/deepnote/blob/a698ad0291be8e75d841ab9404f0f5e594f0a64a/packages/cli/src/commands/cat.ts#L252-L264
a698ad0https://github.com/deepnote/deepnote/commit/a698ad0291be8e75d841ab9404f0f5e594f0a64a
deepnote/packages/blocks/src/deepnote-file/deepnote-file-schema.tshttps://github.com/deepnote/deepnote/blob/a698ad0291be8e75d841ab9404f0f5e594f0a64a/packages/blocks/src/deepnote-file/deepnote-file-schema.ts#L10
a698ad0https://github.com/deepnote/deepnote/commit/a698ad0291be8e75d841ab9404f0f5e594f0a64a
deepnote/packages/cli/src/commands/cat.tshttps://github.com/deepnote/deepnote/blob/a698ad0291be8e75d841ab9404f0f5e594f0a64a/packages/cli/src/commands/cat.ts#L206-L222
a698ad0https://github.com/deepnote/deepnote/commit/a698ad0291be8e75d841ab9404f0f5e594f0a64a
#597https://github.com/deepnote/deepnote/pull/597
tkislanhttps://github.com/tkislan
bugSomething isn't workinghttps://github.com/deepnote/deepnote/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 28, 2026https://github.com/deepnote/deepnote/issues/599#event-34511226161
tkislanhttps://github.com/tkislan
completedhttps://github.com/deepnote/deepnote/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
e494ba1https://github.com/deepnote/deepnote/commit/e494ba1e1ec45c1a0ccc33d59946d34b85ad5c80
on Nov 5, 2026https://github.com/deepnote/deepnote/issues/599#event-35221046100
huangyingtinghttps://github.com/huangyingting
on Nov 5, 2026https://github.com/deepnote/deepnote/issues/599#event-35271577872
fix(cli): show separator blocks as --- in cat text output (deepnote#600)https://github.com/repomesh/deepnote/commit/e494ba1e1ec45c1a0ccc33d59946d34b85ad5c80
deepnote#600https://github.com/deepnote/deepnote/pull/600
https://docs.github.com/articles/closing-issues-via-commit-messages
e494ba1https://github.com/repomesh/deepnote/commit/e494ba1e1ec45c1a0ccc33d59946d34b85ad5c80
Sign up for freehttps://github.com/signup?return_to=https://github.com/deepnote/deepnote/issues/599
Sign in to commenthttps://github.com/login?return_to=https://github.com/deepnote/deepnote/issues/599
bugSomething isn't workinghttps://github.com/deepnote/deepnote/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.