diff --git a/lean4-infoview-api/src/rpcApi.ts b/lean4-infoview-api/src/rpcApi.ts
index 61f602a26..55835eb1c 100644
--- a/lean4-infoview-api/src/rpcApi.ts
+++ b/lean4-infoview-api/src/rpcApi.ts
@@ -153,8 +153,9 @@ export function getGoToLocation(rs: RpcSessionAtPos, kind: GoToKind, info: InfoW
export interface UserWidget {
id: string;
- /** Pretty user name. */
- name: string;
+ /** Newer widget APIs do not send this.
+ * In previous versions, it used to be a user-readable name to show in a title bar. */
+ name?: string;
/** A hash (provided by Lean) of the widgetSource's sourcetext.
* This is used to look up the WidgetSource object.
*/
diff --git a/lean4-infoview/src/infoview/info.tsx b/lean4-infoview/src/infoview/info.tsx
index 1b577a5df..0c797e9d8 100644
--- a/lean4-infoview/src/infoview/info.tsx
+++ b/lean4-infoview/src/infoview/info.tsx
@@ -130,13 +130,22 @@ const InfoDisplayContent = React.memo((props: InfoDisplayContentProps) => {
initiallyOpen={config.showExpectedType}
displayCount={false}
togglingAction='toggleExpectedType' />
- {userWidgets.map(widget =>
- {widget.name}
- {widget.name}
+ {inner}
+