microsoft / microsoft/work-iq

ask: 'most recent docx I modified in OneDrive' returns 1,500+ unscoped results instead of my files

Open
#165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1k
Forks
132
Avg merge
5d 19h
Merged PRs (30d)
6

Description

Summary

ask_work_iq cannot answer "what is the most recent .docx I updated in OneDrive?" It returns 1,532 globally-scoped file results with no filtering to the requesting user's OneDrive or modification history.

Reproduction

  1. Ask: What is the most recent .docx file I updated in OneDrive?
  2. Response returns a broad enterprise file search result (e.g. an unrelated Seismic-hosted document) with no indication it is in the user's OneDrive or modified by the user.

Expected behavior

The query should scope to:

  • Files in the authenticated user's OneDrive
  • Modified by the authenticated user
  • Sorted by last modified date descending

Environment

  • Copilot CLI 1.0.74-3
  • WorkIQ MCP plugin (npm @microsoft/workiq)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the ask_work_iq entry point in the WorkIQ MCP plugin (@microsoft/workiq) and inspect how the authenticated user, OneDrive scope, modification author, and sort order reach the search. Reproduce the query from the issue, then verify that the result is limited to the user's .docx files and ordered by modification date descending.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, powershell
Domain
api, backend, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.