8000 Support additional workspace chat sources and finding history by redoh · Pull Request #16 · inkspect-code-review/inkspect-core · GitHub
[go: up one dir, main page]

Skip to content

Support additional workspace chat sources and finding history - #16

Open
redoh wants to merge 1 commit into
mainfrom
feat/workspace-review-catalog
Open

redoh wants to merge 1 commit into
mainfrom
feat/workspace-review-catalog

Conversation

@redoh
@redoh redoh commented Nov 27, 2026 •
Copy link
Copy Markdown
Contributor

Workspace chat can resolve an additional repository catalog and reopen citations from it. Findings consumers can use the same filtering and lifecycle rules when combining more than one source. The default chat catalog still comes from the workspace’s GitHub connections.

Verification

Package audit, unit tests and TypeScript build passed.


Note

Medium Risk
Changes engine-claim paths for chat citations and shared SQL pagination/cursor validation for findings; behavior is additive with defaults unchanged but mistakes could affect scope or paging across repositories.

Overview
Ask AI now accepts an optional ChatSources catalog on handleWorkspaceChat, so apps can add repository scopes beyond GitHub connections and supply a custom source reader when reopening code citations. loadChatSource delegates snippet fetching to readChatSource, which takes explicit engine claims—making catalog-backed repos reachable without a matching connection row.

Findings share filter and cursor SQL via extracted findingPageClauses, with an optional adjustLifecycle hook on readRepositoryFindings. Pagination is centralized in findingsPage (including a hasMore flag), cursor parsing accepts UUID jobId values as well as legacy J-… ids, and rows may carry an optional readOnly flag. A unit test verifies UUID cursors round-trip through paging.

Reviewed by Cursor Bugbot for commit bbd2a51. Bugbot is set up for automated code reviews on this repo. Configure here.

@inkspectsi
inkspectsi Bot commented Nov 27, 2026 •
Copy link
Copy Markdown

No blocking issues found

Commit: bbd2a51

The change adds optional repository catalogs and citation readers for workspace chat, extracts shared findings pagination logic, and accepts UUID review cursors. No concrete defects or embedded secret exposures were found in the supplied changed source. Review was limited to source inspection.

Change vs. PR intent: Aligned. The diff preserves the default GitHub catalog while adding catalog-backed chat sources and reusable findings filtering, lifecycle adjustment, and pagination.

Scores

Area Score Rationale
Code quality █████ 5/5 The changed code reuses existing citation verification and pagination behavior, with a focused test for UUID cursor round-tripping.
Security █████ 5/5 The changed source contains no apparent secret literals and retains connection checks for default citation reads, response verification, and parameterized findings filters.

Additional chat sources and shared findings pagination

flowchart TD
    n0["Combine connected and additional repositories"]
    n1["Pass scoped repositories to chat reply"]
    n2["Read citation through configured source reader"]
    n3["Load and optionally adjust finding lifecycle"]
    n4["Apply shared finding filters and cursor clauses"]
    n5["Sort findings and generate next-page cursor"]
    n0 -->|"Selected repository scope"| n1
    n1 -->|"Reopen saved citation"| n2
    n3 -->|"Resolution statuses"| n4
    n4 -->|"Filtered finding rows"| n5
Loading

No findings on the changed lines.

Code-focused review. 1 documentation or validation file(s) were searched for supporting excerpts.

View the full report in Inkspect


Reviewed by Inkspect · engine v0.0.70

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

0