Skip to content

fix: resolve NameErrors in agent_context and improve cascade delete coverage#345

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/audit-fixes
Open

fix: resolve NameErrors in agent_context and improve cascade delete coverage#345
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/audit-fixes

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • Fix NameError: select — add missing from sqlalchemy import select as _feishu_select in Feishu channel detection
  • Fix NameError: _AgentModel — add missing from app.models.agent import Agent as _AgentModel in tenant resolution

Test plan

  • Backend runtime: both imports verified present and functional

…overage

Add missing `select` import for Feishu channel config query (bare `select()`
would raise NameError at runtime) and add missing `Agent as _AgentModel`
import for company intro tenant resolution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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