Skip to content
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

feat(client): update chat-pannel and switch to threads #2098

Merged
merged 7 commits into from
May 15, 2024

Conversation

wwayne
Copy link
Collaborator

@wwayne wwayne commented May 11, 2024

Notable changes

  • Using @quilted/threads to replace remote-ui/rpc
  • Change FileContext
export interface LineRange {
  start: number
  end?: number
}

export interface FileContext {
  kind: 'file'
  range?: LineRange
  language?: string
  path: string
}
  • Add sendMessage to the interface Api, the sendMessage is used for scenarios like explain it.
  • In the src/react update method useClient and useServer (make sure the iframe is rendering)

@wwayne wwayne changed the title feat: update chat-pannel and switch to threads feat(client): update chat-pannel and switch to threads May 11, 2024
@wwayne wwayne requested a review from wsxiaoys May 11, 2024 09:37
@wwayne wwayne marked this pull request as ready for review May 11, 2024 09:38
clients/tabby-chat-panel/src/index.ts Outdated Show resolved Hide resolved
clients/tabby-chat-panel/src/index.ts Outdated Show resolved Hide resolved
clients/tabby-chat-panel/src/index.ts Outdated Show resolved Hide resolved
clients/tabby-chat-panel/src/index.ts Outdated Show resolved Hide resolved
clients/tabby-chat-panel/src/index.ts Outdated Show resolved Hide resolved
@wsxiaoys wsxiaoys marked this pull request as draft May 14, 2024 02:51
@wwayne wwayne marked this pull request as ready for review May 14, 2024 07:12
@wwayne wwayne requested a review from wsxiaoys May 14, 2024 07:12
@wwayne
Copy link
Collaborator Author

wwayne commented May 15, 2024

Update end to required

export interface LineRange {
  start: number
  end: number
}

@wsxiaoys wsxiaoys merged commit a293230 into main May 15, 2024
2 checks passed
@wsxiaoys wsxiaoys deleted the client-chat-panel branch May 15, 2024 01:54
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.

None yet

2 participants