coder / coder/internal

aibridge: move initialization of aibridged into coderd.New

Open
#1,032 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently `*aibridged.Server` is instantiated and attached to the router from `enterprise/cli/server.go`. It would be better to instantiate and manage the lifecycle of the `*aibridged.Server` component inside of `coderd.New()` for a few reasons:

- It's only used in the API, so the entire lifecycle could just be handled cleanly by `(*coderd.API).Close()`
- We can conditionally create and attach the aibridge server if the license is entitled to the feature

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.