Skip to content

Restore model interactions viewer - #10205

Merged
DOsinga merged 9 commits into
mainfrom
codex/restore-model-interactions
Jul 17, 2026
Merged

Restore model interactions viewer#10205
DOsinga merged 9 commits into
mainfrom
codex/restore-model-interactions

Conversation

@DOsinga

@DOsinga DOsinga commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a session action to view recent model interactions from diagnostics logs
  • reuse the JSON tree dialog for parsed LLM log entries
  • lift the centered session action trigger above the titlebar drag layer so the whole control is clickable

Checks

  • git diff --check
  • cd ui/desktop && pnpm exec eslint src/components/SessionActionsHeader.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f9b625acb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

setIsModelInteractionsLoading(true);
try {
const report = await getDiagnosticsReport(session.id, 'full');
const interactions = report.logs.llm.map((log) => ({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Filter model interaction logs by session

Opening this from a session action maps every LLM log returned by the diagnostics report, but the backend fills logs.llm from recent_llm_log_paths() (crates/goose/src/session/diagnostics.rs:321) rather than filtering by the session.id passed here. When another session has one of the 10 most recent LLM requests, this viewer will show and copy that other session's prompts/responses under the current session, so the UI needs a per-session log source or an explicit filter.

Useful? React with 👍 / 👎.

Comment on lines +469 to +470
setJsonValue(interactions);
setJsonText(text);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Ignore stale dialog loads before updating JSON state

If a user starts loading model interactions, closes the dialog, and opens session JSON before the diagnostics call finishes, this completion still writes jsonValue/jsonText after the newer load because both dialog modes share the same state and the async result is not tied to the current kind/session. That can leave a dialog titled "Session JSON" displaying/copying model-interaction data (or the reverse); guard completions with a request id/current kind or cancel the previous load.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04cf72d45f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/desktop/src/components/SessionActionsHeader.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac0751e102

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/desktop/src/components/ui/dialog.tsx Outdated
Comment thread ui/desktop/src/components/ui/dialog.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1049e6c8fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/desktop/src/components/SessionActionsHeader.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5cb8543b2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/desktop/src/components/SessionActionsHeader.tsx Outdated
Douwe M Osinga added 2 commits July 17, 2026 12:59
…nteractions

# Conflicts:
#	ui/desktop/src/i18n/messages/es.json
#	ui/desktop/src/i18n/messages/hi.json
#	ui/desktop/src/i18n/messages/ja.json
#	ui/desktop/src/i18n/messages/ko.json
#	ui/desktop/src/i18n/messages/ru.json
#	ui/desktop/src/i18n/messages/tr.json
#	ui/desktop/src/i18n/messages/zh-CN.json
@DOsinga
DOsinga added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit b7c7862 Jul 17, 2026
26 checks passed
@DOsinga
DOsinga deleted the codex/restore-model-interactions branch July 17, 2026 11:36
michaelneale added a commit that referenced this pull request Jul 20, 2026
* origin/main: (24 commits)
  fix(session): create inventory tables atomically with schema version (#10586)
  fix(providers): rewrite oneOf to anyOf in tool schemas for OpenAI-compatible backends (#10571)
  fix(evals): report cache-aware Harbor costs (#10430)
  fix(acp): allow custom model as default for non-local providers (#10438)
  fix(config): require absolute goose path roots (#10454)
  chore(deps): bump astral-sh/setup-uv from 8.2.0 to 8.3.2 (#10541)
  fix(permissions): scope smart approval by request (#10457)
  fix(summon): preserve fixed subrecipe values (#10452)
  chore(deps): bump websocket-driver from 0.7.4 to 0.7.5 in /documentation (#10506)
  fix(flatpak): bundle git so hermit can clone its package registry (#10511)
  feat(hooks): pass working_dir to the Stop hook context (#10296)
  chore(deps): bump actions/setup-java from 5.5.0 to 5.6.0 (#10540)
  chore(deps): bump actions/setup-node from 6 to 7 (#10539)
  chore(deps): bump EmbarkStudios/cargo-deny-action from 2.0.20 to 2.1.1 (#10542)
  chore(deps): bump gradle/actions/setup-gradle from 4.4.3 to 6.2.0 (#10543)
  Add declarative Sakana AI provider for the OpenAI-compatible Fugu API (#10357)
  fix(developer): expose AGENT_SESSION_ID to shell commands (#10428)
  Clean up stale documentation audit findings (#10114)
  Restore model interactions viewer (#10205)
  fix(acp): forward image content chunks to client during live session (#10485)
  ...

# Conflicts:
#	crates/goose/src/session/session_manager.rs
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.

2 participants