Skip to content

Restore sources box: expand by default so it's visible at the bottom of AI messages#5

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-sources-box-back
Draft

Restore sources box: expand by default so it's visible at the bottom of AI messages#5
Copilot wants to merge 3 commits intomainfrom
copilot/add-sources-box-back

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

buildSourcesBubble was never removed by the file-attachments PR, but the sources list started with class="sources-list hidden" — requiring a click to reveal. This made the box appear absent.

Change

In buildSourcesBubble, start the list expanded instead of collapsed:

-  var list = document.createElement('div'); list.className = 'sources-list hidden';
+  var list = document.createElement('div'); list.className = 'sources-list';
   ...
-  var chev = hdr.querySelector('.chev'); var open = false;
+  var chev = hdr.querySelector('.chev'); var open = true;
+  if (chev) chev.classList.add('open');

Sources are now immediately visible below the AI message when the LLM uses web_search. Click-to-collapse is preserved.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.jsdelivr.net
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node (dns block)
  • fonts.googleapis.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node (dns block)
  • https://api.github.com/repos/sriail/MacAI/git/trees/0fd1ab74771e444a9e67cb6c6f62901ea75a4499
    • Triggering command: /usr/bin/python3 python3 (http block)
  • https://api.github.com/repos/sriail/MacAI/git/trees/ab7d85cbaea044cdd93538a6055d162fffd7fc9e
    • Triggering command: /usr/bin/python3 python3 -u bin/WALinuxAgent-2.15.1.3-py3.12.egg -collect-logs (http block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@codesandbox
Copy link

codesandbox bot commented Mar 1, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copilot AI and others added 2 commits March 1, 2026 21:30
Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot AI changed the title [WIP] Add sources box back to chat message Restore sources box: expand by default so it's visible at the bottom of AI messages Mar 1, 2026
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