Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 17, 2026

Displays rotating educational tips (1-2 sentences) as progress messages while Copilot generates chat responses.

Changes

New service: IChatTipService

  • Rotates through 10 predefined tips covering features like @workspace, /explain, #file, inline chat, /tests, etc.
  • Registered as singleton in extension services

Stream integration: ChatTipStreamParticipant

  • Implemented as ResponseStreamParticipant injected first in DefaultIntentRequestHandler
  • Displays tip immediately via stream.progress() with lightbulb icon when chat starts

Implementation

// Service maintains rotating index through tips
class ChatTipService {
  getNextTip(): string | undefined {
    const tip = this._tips[this._currentTipIndex];
    this._currentTipIndex = (this._currentTipIndex + 1) % this._tips.length;
    return tip;
  }
}

// Participant injects tip at stream start
createParticipant(): ResponseStreamParticipant {
  return (inStream: ChatResponseStream) => {
    const tip = this._tipService.getNextTip();
    if (tip) {
      inStream.progress(`$(lightbulb) **Tip:** ${tip}`);
    }
    return inStream;
  };
}

Testing

  • 11 unit tests covering rotation, stream behavior, and tip properties

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add tip UI for user education during Copilot Chat Add educational tip UI during chat response generation Jan 17, 2026
Copilot AI requested a review from pierceboggan January 17, 2026 05:38
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.

2 participants