github / github/copilot-sdk

Support company announcements in SDK sessions

Aperta
#2,070 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Java
Stelle
10.5k
Fork
1.5k
Merge medio
1g 11h
PR unite (30g)
127

Descrizione

## Summary

Add SDK support for Copilot CLI company announcements so applications embedding the SDK can display centrally configured organization or repository messages.

## Runtime behavior

The agent runtime already supports `companyAnnouncements` (originally `launch_messages`):

- User settings can define an array of announcement strings.
- Repository settings can define the same key in `.github/copilot/settings.json` / `.github/copilot/settings.local.json`
- Repository announcements replace user-level announcements when present.
- In the interactive CLI, startup announcements flow through `NotificationService`; its TUI handler emits an ephemeral `session.info` event with `infoType: "notification"` and a message prefixed with `Company announcement:`.
- Repository announcements are similarly emitted after trusted repository settings are loaded.

Relevant runtime work (private repo):

- https://github.com/github/copilot-agent-runtime/pull/2448
- https://github.com/github/copilot-agent-runtime/pull/4134
- https://github.com/github/copilot-agent-runtime/pull/3696

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by tracing how SDK sessions expose runtime events, then compare the referenced runtime pull requests and the NotificationService behavior described here. Check how trusted repository settings and user settings are represented in the SDK. Done means applications can receive company announcements with the specified session.info notification format and replacement behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.