Repository navigation
refactor(jira): remove the code-owned Jira chat agent - #7762
Merged
Merged
Conversation
The agent was a virtual MCP over the org's self connection with the JIRA_* tools selected and instructions pinned from code, created for every org with an enabled Jira integration. Pinning the instructions and tools made it impossible to adapt per org, and nothing about it needs special code: an org can build the same agent over the self connection's JIRA_* tools. Removes chat-agent.ts, its sync on JIRA_INTEGRATION_UPSERT/DELETE and its override in resolveEffectiveStudioPackVirtualMcp. Migration 231 becomes a no-op (it has already run), and 233 deletes the agents it created, with their threads and aggregations. The JIRA_* tools keep working outside a run.
decocms Bot
pushed a commit
that referenced
this pull request
Oct 6, 2026
PR: #7762 refactor(jira): remove the code-owned Jira chat agent Bump type: patch - decocms (apps/api/package.json): 4.443.0 -> 4.443.1 - @decocms/native (apps/native/package.json): 4.443.0 -> 4.443.1 Deploy-Scope: server
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.
What is this contribution about?
Removes the "Jira" agent added in #7747. It was a virtual MCP over the org's
selfconnection with theJIRA_*tools selected, created automatically for every org with an enabled Jira integration, and its instructions and tool list were pinned from code at run time. That made it impossible to adapt per org (edits to its instructions were silently replaced), and nothing about it needs special code: an org that wants a Jira agent can build an ordinary one over the sameJIRA_*tools.apps/api/src/jira/chat-agent.tsand its tests.JIRA_INTEGRATION_UPSERT/JIRA_INTEGRATION_DELETEno longer create or remove an agent.resolveEffectiveStudioPackVirtualMcpno longer overrides that agent's instructions and tools.studio-jira_<orgId>), the same wayVirtualMCPStorage.deletedoes: threads, aggregations, then the VIRTUAL connection.Kept from #7747: the
JIRA_*tools still work outside a run (namedissueKey, still confined to the connected board;JIRA_ISSUE_CREATEtakes the project from the board).How did you verify your code works?
233-remove-jira-chat-agent.integration.test.ts(real Postgres): seeds astudio-jira_agent with a thread and an aggregation next to an unrelated agent, thread and aggregation; runsuptwice; only the Jira agent's rows are gone.bun run migrateon an empty local Postgres, thenbun test migrations/233-remove-jira-chat-agent.integration.test.ts migrations/index.test.ts: 3 pass.bun test src/tools/jira src/tools/virtual src/jira: 246 pass.bun run check: passes.bun run verify: 10,287 pass, 0 fail.organization_settings.How to Test
studio-jira_*connections and their aggregations are gone.JIRA_ISSUE_GETwith anissueKeyon/mcp/selfoutside a run: it still works.Migration Notes
Migration 233 deletes data: every connection whose id starts with
studio-jira_(only migration 231 or the removed sync created those), with its aggregations and threads. In production that is 2 agents and 0 threads today.Review Checklist
Summary by cubic
Removes the code-owned "Jira" chat agent and the code that created and kept it in sync, because its instructions and tool list were pinned from code at run time and could not be adapted per org. An org that wants a Jira agent can now build an ordinary one over the same
JIRA_*tools, which keep working on/mcp/selfoutside a run.JIRA_INTEGRATION_UPSERT/JIRA_INTEGRATION_DELETEno longer create or remove the agent, andresolveEffectiveStudioPackVirtualMcpno longer overrides it.studio-jira_<orgId>agents it created, along with their threads and aggregations.VirtualMCPStorage.delete: threads, aggregations, then the VIRTUAL connection.Written for commit b3d3057. Summary will update on new commits.