codex icon indicating copy to clipboard operation
codex copied to clipboard

Improve Sources panel semantics and agent execution observability in Codex Desktop

Open kumestra opened this issue 6 days ago • 1 comments

Background

I have experience using both Codex CLI and Codex Desktop on Windows. One aspect of the desktop interface that I find confusing is the Sources section in the right-hand task sidebar.

While the Changes section has relatively clear technical semantics, the Sources section appears to present a higher-level abstraction of the information involved in an agent's task.

Problem: Ambiguous semantics of the Sources panel

When a URL appears in the Sources panel, its precise meaning is unclear.

  • Was the URL returned by a search tool?
  • Was the webpage actually opened or read by the agent?
  • Was its content used to produce a response?
  • Is its content still available in the model's active context?
  • Does "View all" show every source accessed during the session, or only a selected subset?
  • Which conversation turn and tool invocation produced this source?

The panel appears to function as an information provenance or reference index, but its relationship to the underlying agent execution events is not apparent.

This makes it difficult to distinguish actual system behavior from a product-level interpretation of that behavior.

Product design considerations

I believe there is an important distinction between a general-purpose AI work assistant and a developer-oriented coding agent.

In a general-purpose work environment, users primarily care about outcomes. For example, when requesting a Word document, a user may not care whether it was generated using Python, Node.js, or a particular library. A list of references and the resulting document may be sufficient.

However, in Codex, developers may also want to understand how the agent accomplished the task:

  • Which tools were invoked?
  • What arguments were passed to those tools?
  • What results were returned?
  • Which shell commands were executed?
  • Which programming languages and libraries were used?
  • During which conversation turn did these actions occur?

For a developer-oriented product, execution observability and inspectability are important alongside outcome-oriented summaries.

The Sources panel is useful as a reference index, but it should not substitute for a technically meaningful and inspectable execution history.

Proposed improvements

1. Define the semantics of Sources

Clarify what qualifies as a source, how sources are collected, whether they are filtered or deduplicated, and what scope "View all" represents.

2. Make sources traceable to execution events

Allow users to navigate from an individual source to the corresponding conversation turn and tool invocation that produced it.

Where applicable, distinguish between URLs returned by a search, webpages actually retrieved, and sources cited in a response.

3. Provide a detailed execution trace

Introduce a dedicated execution trace view or an optional developer-oriented activity mode that exposes:

  • Conversation turn identifiers
  • Tool names
  • Tool arguments
  • Tool results
  • Execution order and timestamps
  • Shell commands and their output
  • Execution status and errors

The interface could use progressive disclosure, keeping high-level summaries available while allowing developers to inspect the underlying execution events when necessary.

Rationale

The goal is not to expose the model's private chain of thought, nor to overwhelm users with raw logs.

Rather, it is to make externally observable agent behavior accessible, traceable, and technically well-defined.

A developer should be able to move from a high-level UI summary to the actual execution events behind it, in much the same way that conventional development tools allow users to inspect logs, call stacks, and execution traces.

Codex should not only communicate what the agent accomplished, but also make how it accomplished the task inspectable.

This would improve transparency, debugging, auditing, and developer confidence in Codex Desktop.

kumestra avatar Nov 26 '26 08:11 kumestra

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #63256

Powered by Codex Action

github-actions[bot] avatar Nov 26 '26 09:11 github-actions[bot]