Skip to content

Add the terminal output to the chat context #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Kitenite
Copy link

Description

Added the terminal message in the chat context

Related Issues

related onlook-dev#1593

Screenshot

Screenshot from 2025-05-11 19-22-54


Important

Add terminal output to chat context, enabling users to include terminal messages in chat interactions.

  • Behavior:
    • Adds terminal output to chat context in ChatContext class in context.ts.
    • Implements getTerminalContext() and addTerminalContext() in ChatContext to manage terminal messages.
    • Adds getTerminalOutput() in EditorEngine in index.ts to fetch terminal history.
  • UI:
    • Adds button in ChatInput.tsx to trigger terminal output addition to chat context.
  • Models:
    • Adds TERMINAL type to MessageContextType in context.ts.
    • Defines TerminalMessageContext type in context.ts.

This description was created by Ellipsis for b5d9f62. You can customize this summary. It will automatically update as commits are pushed.

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