Skip to content

fix(tui): replace ink-use-stdout-dimensions with inline hook — ESM compat#700

Merged
umyunsang merged 1 commit into
mainfrom
fix/esm-compat-stdout-dimensions
Apr 10, 2026
Merged

fix(tui): replace ink-use-stdout-dimensions with inline hook — ESM compat#700
umyunsang merged 1 commit into
mainfrom
fix/esm-compat-stdout-dimensions

Conversation

@umyunsang
Copy link
Copy Markdown
Member

Summary

  • Remove ink-use-stdout-dimensions package (CJS, incompatible with Ink v5 ESM)
  • Replace with inline useColumns() hook using useStdout() + stdout.on('resize') — identical logic

Root cause

ink-use-stdout-dimensions is built as CJS and calls require('ink'), but Ink v5 is ESM-only with top-level await → runtime crash on govon startup.

Test plan

  • govon starts without ESM error
  • Terminal resize reflows markdown content correctly

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 10, 2026

Warning

Rate limit exceeded

@umyunsang has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 20 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 0 minutes and 20 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6938413e-6471-4b42-a9c4-c93110b13c54

📥 Commits

Reviewing files that changed from the base of the PR and between ca7a5ee and f88069c.

📒 Files selected for processing (2)
  • packages/npm/package.json
  • packages/npm/src/components/MarkdownView.tsx

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: String must contain at most 250 character(s) at "tone_instructions"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/esm-compat-stdout-dimensions

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added bug Something isn't working data frontend 프론트엔드 관련 labels Apr 10, 2026
@umyunsang umyunsang merged commit cc6e5e7 into main Apr 10, 2026
11 checks passed
@umyunsang umyunsang deleted the fix/esm-compat-stdout-dimensions branch April 10, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working data frontend 프론트엔드 관련

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant