Skip to content

fix: address remaining PR #135 review feedback#136

Merged
simongdavies merged 1 commit into
hyperlight-dev:mainfrom
simongdavies:fix-markdown-review
May 14, 2026
Merged

fix: address remaining PR #135 review feedback#136
simongdavies merged 1 commit into
hyperlight-dev:mainfrom
simongdavies:fix-markdown-review

Conversation

@simongdavies
Copy link
Copy Markdown
Member

Verified: diff matches this message. 40 test files, 2350 tests pass.

- /markdown toggle: set sessionNeedsRebuild so system prompt updates (hyperlight-dev#1)
- CLI help: document --[no-]markdown, --md/--no-md aliases, HYPERAGENT_MARKDOWN (hyperlight-dev#6)
- Streamed output: gate renderMarkdown on looksLikeMarkdown consistently (hyperlight-dev#7)
- markdown-renderer: use local Marked instance instead of global setOptions (hyperlight-dev#9)
- looksLikeMarkdown: remove over-eager bold and unordered-list patterns (hyperlight-dev#10)
- unescape: verified valid marked-terminal option (comment was wrong) (hyperlight-dev#8)
- linkifyFiles order: verified safe — [[file:]] not a markdown token (hyperlight-dev#16)

Verified: diff matches this message. 40 test files, 2350 tests pass.
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 14, 2026 19:43
@simongdavies simongdavies added the bug Something isn't working label May 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Follow-up PR addressing review feedback from PR #135 (markdown rendering). Tightens the markdown rendering path: makes /markdown toggle propagate to the system prompt, uses a local Marked instance instead of mutating global state, narrows the looksLikeMarkdown heuristic to avoid false positives, gates buffered output rendering on that heuristic, and updates CLI help text.

Changes:

  • /markdown slash command now sets sessionNeedsRebuild so system prompt updates take effect.
  • markdown-renderer.ts uses a local Marked instance; looksLikeMarkdown drops weak bold/unordered-list patterns.
  • processMessage gates renderMarkdown on looksLikeMarkdown; CLI help documents --[no-]markdown, --md/--no-md, and HYPERAGENT_MARKDOWN.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/agent/slash-commands.ts Sets sessionNeedsRebuild when toggling markdown so the LLM picks up updated prompt instructions.
src/agent/markdown-renderer.ts Switches to a local Marked instance, corrects an inline comment, and narrows looksLikeMarkdown heuristics.
src/agent/index.ts Gates buffered-output markdown rendering on looksLikeMarkdown, otherwise prints raw text; linkifyFiles applied after.
src/agent/cli-parser.ts Updates help to document --[no-]markdown, --md/--no-md, and HYPERAGENT_MARKDOWN.

@simongdavies simongdavies merged commit 17134a1 into hyperlight-dev:main May 14, 2026
16 checks passed
simongdavies added a commit that referenced this pull request May 15, 2026
* docs: changelog for v0.6.0

Move [Unreleased] section to [v0.6.0] - 2026-05-15 covering the 23
commits landed on upstream/main since v0.5.0:

Added:
- User-generated skills from session learnings (#139)
- KQL expert skill with requires-mcp frontmatter and Kusto highlighting (#137)
- Terminal markdown rendering via marked + marked-terminal (#135, #136)
- Verbose/debug gating for diagnostic output (#137)
- execute_bash large output interception (#134)

Fixed:
- marked v15 + marked-terminal v7 incompat in markdown-renderer (#138)
- HybridFs sandbox /tmp path mapping + adapter refactor (#134)
- Prettier mangling of nested template literals in styled output (#134)
- Full error text now wrapped in C.err() across 11 paths (#135)
- /markdown toggle now flips sessionNeedsRebuild (#136)
- looksLikeMarkdown false positives on bold/unordered-list (#136)

Changed:
- Dependency bumps: msal-node 5.2.1, tsx 4.22.0, @types/node 25.8.0,
  tokio in code-validator guest (#142, #143, #146, #147)

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>

* fix: address PR #148 review feedback (3 issues)

CHANGELOG.md:
- Fabric RTI CLI flag: `--mcp setup-fabric-rti` was wrong, actual
  flag in src/agent/cli-parser.ts is `--mcp-setup-fabric-rti`
  (single hyphenated token). Users copy-pasting the old form would
  hit "unknown argument"
- Terminal markdown rendering default: said "raw streaming remains
  the default" but cli-parser.ts sets `markdown: process.env.HYPERAGENT_MARKDOWN
  !== "0"` (default ON) and `--[no-]markdown` help text confirms
  default: on. Reworded to make default-on explicit and document
  the three opt-out paths
- Missing link reference: added
  `[v0.6.0]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.6.0`
  to match the existing reference-style link section

No code changes. Prettier clean.

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>

---------

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants