Skip to content

fix(discord): render local source citations as readable paths - #284

Merged
johoja12 merged 1 commit into
localfrom
fix/discord-local-source-links
Nov 18, 2026
Merged

johoja12 merged 1 commit into
localfrom
fix/discord-local-source-links

Conversation

@johoja12

Copy link
Copy Markdown
Owner

Discord displays local source citations as literal Markdown, exposing brackets and allowing underscores in long paths to be interpreted as formatting. For example, [the current source](/mnt/.../demand_order.py:572) appears broken in response cards.

Render supported local source-file references as the current source ( + inline-code path + ). Preserve the complete path and line number, public web links, image references, code examples, and uploadable output links. Skip non-link lines before scanning to preserve bounded formatting CPU.

Fixes #283.

Validation: response-card payload regression using the screenshot path, public/image/code preservation, plus attachment and native UI integration suites. All 277 tests passed across four formatter, artifact, attachment integration, and native UI suites. No production deployment.

Typecheck, lint, format check, lockfile check, and whitespace checks passed. Commit: a011ea19.

@johoja12
johoja12 merged commit 23a5bc2 into local Nov 18, 2026
1 of 2 checks passed
@johoja12

Copy link
Copy Markdown
Owner Author

Merged and deployed PR #284 to production local at 23a5bc208557de9a7fbc40345197aa3fea7f3ba0 (fix a011ea19, existing version 1.51.0).

Validation: 277 targeted tests across formatter/artifact/interface/native-UI suites; typecheck, lint, format and lockfile checks passed. Full production build succeeded, codeman-web restarted and is active (PID 1278970). Fresh /api/sessions and /api/discord calls succeeded; Discord gateway is connected. The deployed dist formatter/card payload passes the exact screenshot citation, retaining its path and line number while preserving web and upload links.

Session verification: all 13 sessions present at restart restored. The baseline-to-after difference was a quiet daily automation session replaced by the old server before restart (replacement created 09:04:16 UTC, restored by new server 09:05:54 UTC). The other 12 IDs/native resume identities stayed unchanged. Worktree clean, no stashes, no dependency changes. PR typecheck/lint CI passed; its broader integration CI was still running at deployment, separate from passing targeted local checks.

Newly rendered source citations receive the fix; previously posted Discord cards are not rewritten by this deployment.

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