Skip to content

Commit 249bf5e

Browse files
bloveclaude
andcommitted
fix(examples): drop the dead interrupt existence guard in the demo shell
LangGraphAgent.interrupt is now a required member, so `agent.interrupt &&` is always true and the packaged-consumer build rejects it with TS2774. The call itself still returns AgentInterrupt | undefined, so the remaining `agent.interrupt()` test is the real condition. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 7b37209 commit 249bf5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/chat/angular/src/app/shell/demo-shell.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<app-itinerary-panel class="demo-shell__itinerary-overlay" />
136136
<div class="demo-shell__main">
137137
<router-outlet />
138-
@if (agent.interrupt && agent.interrupt()) {
138+
@if (agent.interrupt()) {
139139
<div class="demo-shell__interrupt-panel" role="region" aria-label="Approval required">
140140
<chat-interrupt-panel [agent]="agent" (action)="onInterruptAction($event)" />
141141
</div>
@@ -148,7 +148,7 @@
148148
[attr.data-sidenav-mode]="sidenavMode() !== 'drawer' ? sidenavMode() : null"
149149
>
150150
<router-outlet />
151-
@if (agent.interrupt && agent.interrupt()) {
151+
@if (agent.interrupt()) {
152152
<div class="demo-shell__interrupt-panel" role="region" aria-label="Approval required">
153153
<chat-interrupt-panel [agent]="agent" (action)="onInterruptAction($event)" />
154154
</div>

0 commit comments

Comments
 (0)