Code Snippet Viewer
The Code Snippet Viewer renders live file:line context directly inside the panel, so you can inspect a finding or a diff without leaving RoboCo.
Where you see it
The viewer is used on the Findings tab of a task detail page. Each structured finding that points at a file and line now shows an inline snippet of the surrounding lines pulled live from that file at the task's branch, inside a fixed-height scrollable window so long files do not lock up the UI.
What it does
- Fetches the file window from the task's branch via the git API — the live tip of the branch, not a snapshot pinned to the commit the finding was raised against.
- Renders a plain monospace block with the flagged line highlighted; there is no syntax highlighting.
- Shows a few lines of context above and below the flagged line, scrollable within the fixed-height viewport rather than a collapse/expand control.
Why it matters
Reviewing a finding used to mean opening the repository in another tab, finding the right branch, and scrolling to the right line. The inline snippet brings that context into the decision surface, so the next reviewer can verify whether a blocker was really fixed without leaving the task page.
The viewer shows the file as it exists on the task branch. It does not edit code; editing still happens in the agent's workspace or your own checkout.
Next
→ Tasks & Kanban for the task detail page where the Findings tab lives · Review & Quality for how structured findings are raised and resolved.