DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

fix: wrap desktop ask prompts / 修复桌面 ask 问题换行

Open GTC2080 opened this issue 5 months ago • 0 comments

Summary

  • Fixes #4852.
  • Add an opt-in wrapped metadata mode for PromptShelf so 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.ts
  • corepack pnpm run test:all
  • corepack pnpm run build
  • go 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

GTC2080 avatar Jun 19 '26 08:06 GTC2080