Skip to content

Display thinking content with custom styling#2

Merged
dnouri merged 1 commit intomasterfrom
feat/thinking-display
Dec 31, 2025
Merged

Display thinking content with custom styling#2
dnouri merged 1 commit intomasterfrom
feat/thinking-display

Conversation

@dnouri
Copy link
Owner

@dnouri dnouri commented Dec 30, 2025

  • Handle thinking_start, thinking_delta, thinking_end events
  • Use ```thinking markdown fence which becomes #+begin_src thinking
  • Add pi-thinking face (italic, comment color)
  • Add font-lock to apply face to thinking block content
  • Simple streaming approach: just insert markers at start/end, no replacement

- Handle thinking_start, thinking_delta, thinking_end events
- Use ```thinking markdown fence which becomes #+begin_src thinking
- Add pi-thinking face (italic, comment color)
- Add font-lock to apply face to thinking block content
- Simple streaming approach: just insert markers at start/end, no replacement
@dnouri dnouri merged commit d8f8a5a into master Dec 31, 2025
4 checks passed
@dnouri dnouri deleted the feat/thinking-display branch December 31, 2025 12:05
dnouri added a commit that referenced this pull request Jan 28, 2026
Uncle Bob review fixes:

Issue #1 & #2: Extract pi-coding-agent--prepare-and-send
- Single function handles display/tracking for all send paths
- Used by pi-coding-agent-send, follow-up queue, and custom commands
- Consistent behavior: slash commands never display locally

Issue #3: Add edge case test
- Test for when template expands to same text as command
- Documents expected behavior (skip display if identical)

Issue #4: Fix JSON boolean encoding
- Use :json-false instead of :false for json-encode
- :false encodes to string "false", :json-false encodes to boolean false
- Updated extension UI confirm handler

Issue #5: Improve test coverage
- Add assertion verifying expanded content is displayed
- Add test for different expanded content case
dnouri added a commit that referenced this pull request Feb 25, 2026
- Handle thinking_start, thinking_delta, thinking_end events
- Use ```thinking markdown fence which becomes #+begin_src thinking
- Add pi-thinking face (italic, comment color)
- Add font-lock to apply face to thinking block content
- Simple streaming approach: just insert markers at start/end, no replacement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant