DeepSeek-Reasonix
DeepSeek-Reasonix copied to clipboard
fix: wrap desktop ask prompts / 修复桌面 ask 问题换行
Summary
- Fixes #4852.
- Add an opt-in wrapped metadata mode for
PromptShelfso interactive ask prompts can use the full available width without changing default one-line shelves. - Enable the wrapped mode for
AskCard, preserving the complete superpowers question text and allowing long unspaced prompt content to break safely. - Add a JSDOM/CSS regression test that renders the ask card against the real stylesheet and guards against
nowrap/ellipsis clipping.
Verification
corepack pnpm exec tsx src/__tests__/ask-card-layout.test.tscorepack pnpm run test:allcorepack pnpm run buildgo test ./...(cd desktop && go test ./...)gofmt -l .git diff --check
Cache impact
Cache-impact: none - desktop frontend layout and regression-test only; provider-visible system prompt, tool schema, and request serialization bytes are unchanged.
Cache-guard: corepack pnpm run test:all; this PR does not touch cache-sensitive prompt/tool paths.
System-prompt-review: N/A