fix(ai): restore table mention suggestions - #2888
Merged
Merged
Conversation
openai0229
force-pushed
the
fix/isolate-ai-context-references
branch
4 times, most recently
from
September 9, 2026 06:01
9333224 to
6d6dd59
Compare
Contributor
Author
|
Final code review completed on head Review fixes included:
Verification passed locally: No unresolved code-review findings remain. |
openai0229
force-pushed
the
fix/isolate-ai-context-references
branch
from
September 9, 2026 08:07
6d6dd59 to
fc57852
Compare
openai0229
force-pushed
the
fix/isolate-ai-context-references
branch
from
September 10, 2026 01:06
fc57852 to
b34e0a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
N/A - fixes the Community AI mention regression.
Summary
Community AI
@suggestions now contain only database tables and views. The popup opens on explicit@input, supports keyboard and mouse selection, protects against stale table/view responses, keeps the type column fixed on the right, and ellipsizes long names with a native title. AI datasource selection exposes only groups, data sources, databases, and schemas; monitor, user, and account nodes are excluded.Affected surfaces
Verification
yarn lint:eslintpassedyarn test:retired-aipassedyarn build:web:community --app_version=0.0.0passed, including production bundle verificationhttp://127.0.0.1:8899with backendhttp://127.0.0.1:10835verified@, keyboard Enter, mouse selection, Escape/delete close, datasource filtering, fixed type column, title tooltip, and table/view requests onlyRisk and compatibility
Reviewer map
chat2db-community-client/src/blocks/AI/components/AIChatInput/index.tsxandchat2db-community-server/chat2db-community-web/src/main/java/ai/chat2db/community/web/api/adapter/ai/AiChatStreamAdapter.java@suggestions do not open, select stale results, or expose non-table nodes.Contributor declaration
AI assistance: Codex traced the regression, removed the Community knowledge/context surface, added focused tests, and performed build and interaction verification.