Skip to content
Open
262 changes: 142 additions & 120 deletions apps/api/src/handlers/discord/__tests__/fast-agent.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions apps/api/src/handlers/discord/__tests__/index.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions apps/api/src/handlers/discord/fast-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import {
} from '@roomote/communication';
import {
admitFastAgentHumanFollowUp,
createSourceControlConnectionAdapter,
isSourceControlConnectionEnabled,
createFastAgentConversationArtifact,
persistFastAgentInlineHumanTurn,
recordFastAgentConversationMessageBestEffort,
Expand Down Expand Up @@ -390,6 +392,9 @@ export async function processDiscordFastAgentMessage(
entry.user !== input.sender.id,
),
adapter: {
...createSourceControlConnectionAdapter(),
sourceControlConnectionEnabled:
await isSourceControlConnectionEnabled(),
createArtifact: (artifact) =>
createFastAgentConversationArtifact({
fastConversationId: session.id,
Expand Down
Loading
Loading