Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): type a machine or model name, press Tab to make it a chip #31968

ClosedDominikScholz(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/31968/headopened View on GitHub

Showing 10 changed files with 97 additions and 14 deletions (loading 8).

x
0 of 10 viewed, 10 left
74 additions and 2 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -12,7 +12,7 @@
runtimeModeDenial,
} from "./runtimeModeConfig";
import { isLocalEnvironmentDisabled } from "../../localEnvironment";
-import { usePrimaryEnvironmentId } from "../../state/environments";
+import { useEnvironmentIdentities, usePrimaryEnvironmentId } from "../../state/environments";
import { useRightPanelStore } from "~/rightPanelStore";
import { importPastedComposerText, readPastedComposerContext } from "../composerInlineTokenPaste";
import {
@@ -48,6 +48,8 @@
PROVIDER_SEND_TURN_MAX_ATTACHMENTS,
PRIMARY_LOCAL_ENVIRONMENT_ID,
} from "@t3tools/contracts";
+import { useAtomValue } from "@effect/atom-react";
+import { matchComposerInlineSuggestion } from "@t3tools/client-runtime/composerInlineSuggestion";
import type { EnvironmentConnectionPresentation } from "@t3tools/client-runtime/connection";
import { settlePromise, squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
import * as Schema from "effect/Schema";
@@ -167,6 +169,7 @@
type ComposerCitationCommentRequest,
type ComposerPromptEditorHandle,
ComposerPromptEditorTiptap as ComposerPromptEditor,
+ type ComposerEditorInlineSuggestion,
} from "../ComposerPromptEditorTiptap";
import {
ComposerContextActionsContext,
@@ -199,7 +202,7 @@