Skip to content

Commit 7dede72

Browse files
committed
Don't show apply code button when code is still streaming
1 parent 55dee17 commit 7dede72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/host/app/components/ai-assistant/formatted-message.gts

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { tracked } from '@glimmer/tracking';
88
import Modifier from 'ember-modifier';
99
import { TrackedArray, TrackedObject } from 'tracked-built-ins';
1010

11-
import { and, eq } from '@cardstack/boxel-ui/helpers';
11+
import { and, eq, not } from '@cardstack/boxel-ui/helpers';
1212

1313
import { sanitizeHtml } from '@cardstack/runtime-common/dompurify-runtime';
1414

@@ -148,6 +148,7 @@ export default class FormattedMessage extends Component<FormattedMessageSignatur
148148
(and
149149
(this.isCodePatch codeData.content)
150150
(this.fileUrlIsPresent codeData.fileUrl)
151+
(not @isStreaming)
151152
)
152153
}}
153154
<actions.applyCodePatch

0 commit comments

Comments
 (0)